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

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

[Octave-bug-tracker] [bug #50716] Undefined input to a classdef method


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #50716] Undefined input to a classdef method
Date: Tue, 4 Apr 2017 16:14:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #1, bug #50716 (project octave):

Agree, I see the same thing with Python objects (implemented with classdef).

With no colon expression, the parser seems to handle it as a subsref call on
"obj.method", which maps to a normal method call. Same with a colon expression
that does not contain "end".

With an "end" expression, it seems to be treating the following as equivalent


obj.method(s(1:end))
obj.method()(s(1:end))


The subsref operation is done on the result of calling "obj.method" with no
arguments.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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