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

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

[Octave-bug-tracker] [bug #51659] Calling 'methods' on self causes synta


From: Piotr Held
Subject: [Octave-bug-tracker] [bug #51659] Calling 'methods' on self causes syntax error
Date: Mon, 7 Aug 2017 13:41:01 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36

Follow-up Comment #5, bug #51659 (project octave):

And also 'methods', 'properties' or 'events' are illegal names for properties
or events. 

However they are not illegal names for methods (which I guess is so that you
could overload what methods() or properties() or events() does?). So you can
have:


methods
  function methods (self) % events or proprties
    a = methods (self);
  end
end


and you will not get a syntax error. It will only spit out an error when
calling the method itself. If the method does actually make sense, calling
methods(obj_classname) actually executes the method 'methods' instead of
listing all the methods of obj_classname. 



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51659>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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