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

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

[Octave-bug-tracker] [bug #55870] methods() does not work on built-in cl


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #55870] methods() does not work on built-in classes (e.g. meta classes)
Date: Fri, 8 Mar 2019 14:06:24 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

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

                 Summary: methods() does not work on built-in classes (e.g.
meta classes)
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Fri 08 Mar 2019 11:06:22 AM PST
                Category: Octave Function
                Severity: 1 - Wish
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The 'methods' function should return a list of methods for class definitions
that are built in to the interpreter:


>> methods ('meta.class')
error: [java] java.lang.ClassNotFoundException: meta.class
error: called from
    methods at line 49 column 16
>> m = ?inputParser;
>> methods (m)
Methods for class meta.class:




Both of these styles should return the list of methods for the 'meta.class'
class. I can get this list in a roundabout way:


>> m = ?meta.class;
>> cellfun (@(x) x.Name, m.Methods, 'uniformoutput', false)
ans =
{
  [1,1] = delete
  [2,1] = eq
  [3,1] = fevalStatic
  [4,1] = fromName
  [5,1] = ge
  [6,1] = getConstant
  [7,1] = gt
  [8,1] = le
  [9,1] = lt
  [10,1] = ne
}






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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