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

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

[Octave-bug-tracker] [bug #63841] nargout is always 0 or 1 for subsref()


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #63841] nargout is always 0 or 1 for subsref() in classdef methods
Date: Thu, 13 Apr 2023 11:58:17 -0400 (EDT)

Follow-up Comment #28, bug #63841 (project octave):

I believe negative nargout are used in Matlab to indicate that a function uses
`varargout`:
https://www.mathworks.com/help/matlab/ref/nargout.html
> nargout(fun) returns the number of outputs that appear in the fun function
definition. If the function includes varargout in its definition, then nargout
returns the negative of the number of outputs. For example, if function myFun
declares outputs y, z, and varargout, then nargout('myFun') returns -3.

Does that conflict with that usage?



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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