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

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

[Octave-bug-tracker] [bug #48656] overridden class subsref method may ge


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #48656] overridden class subsref method may get wrong value for nargout
Date: Fri, 29 Jul 2016 20:28:46 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #3, bug #48656 (project octave):

I think these two help pages describe the relevant behavior:

http://www.mathworks.com/help/matlab/matlab_oop/number-of-arguments-in-indexing-methods.html
http://www.mathworks.com/help/matlab/matlab_oop/overloading-numel-subsref-and-subsasgn.html

So yes, the number of indices is supposed to set what the value of nargout is,
not the normal number of output arguments.

But I'm still curious why or whether this should apply to the first index type
being ".".

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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