|
From: | Richard |
Subject: | [Octave-bug-tracker] [bug #53601] Class method access lists do not need to be cell arrays for single items. |
Date: | Tue, 10 Apr 2018 03:25:58 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/65.0.3325.181 Chrome/65.0.3325.181 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?53601> Summary: Class method access lists do not need to be cell arrays for single items. Project: GNU Octave Submitted by: crobar Submitted on: Tue 10 Apr 2018 07:25:57 AM UTC Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: Richard Crozier Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Any _______________________________________________________ Details: Matlab allows the class method access list to not be a cell array (or at least not use cell array syntax) if there is a single item. See the attached example. In the example, running test_octave_method_access_control.m should display 'Access granted' on the command line (and does so in Matlab R2016b). In Octave it results in the error: error: invalid property/method access in class `testMethodAccess1' If the syntax is changed from methods (Access = ?testMethodAccess2) to methods (Access = {?testMethodAccess2}) then it works in Octave. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 10 Apr 2018 07:25:57 AM UTC Name: test_octave_method_access_control.m Size: 70B By: crobar <http://savannah.gnu.org/bugs/download.php?file_id=43866> ------------------------------------------------------- Date: Tue 10 Apr 2018 07:25:57 AM UTC Name: testMethodAccess1.m Size: 208B By: crobar <http://savannah.gnu.org/bugs/download.php?file_id=43867> ------------------------------------------------------- Date: Tue 10 Apr 2018 07:25:57 AM UTC Name: testMethodAccess2.m Size: 469B By: crobar <http://savannah.gnu.org/bugs/download.php?file_id=43868> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?53601> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |