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

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

[Octave-bug-tracker] [bug #46892] subsref for OO @class failed to be cal


From: Oliver Heimlich
Subject: [Octave-bug-tracker] [bug #46892] subsref for OO @class failed to be called within method function.
Date: Thu, 14 Jan 2016 06:32:26 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.5.0

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

It is the expected behaviour that `subsref` and `subsasgn` with operator
syntax do not use overloaded methods.  Otherwise it would not be possible to
access the object's internal data anymore.

So the plot.m method should be fixed and use something like this:

````
idx = struct ("type", "()", "subs", x)
plot (x, subsref (p, idx), varargin{:});

````

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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