octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #64066] methods() lists functions with Access


From: Rik
Subject: [Octave-bug-tracker] [bug #64066] methods() lists functions with Access = Protected or Private
Date: Tue, 18 Apr 2023 18:48:28 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?64066>

                 Summary: methods() lists functions with Access = Protected or
Private
                   Group: GNU Octave
               Submitter: rik5
               Submitted: Tue 18 Apr 2023 03:48:26 PM PDT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 18 Apr 2023 03:48:26 PM PDT By: Rik <rik5>
According to Matlab documentation, only Public methods for which Hidden is
false should be listed.  However, all methods of a classdef object seemed to
be returned by Octave.

Example code:


methods ('inputParser')
Methods for class inputParser:
addOptional    addParameter   addSwitch      delete         error         
parse          validate_name
addParamValue  addRequired    add_missing    disp           is_argname    
validate_arg


Methods such as "is_argname" and "validate_name" are declared Private in the
classdef file and should not be displayed.

There was a similar problem with the properties() function which was fixed to
base its decisions on the Access and Hidden properties.  Perhaps some code can
be reused.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64066>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]