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

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

[Octave-bug-tracker] [bug #65153] Unexpected error when using the ~ outp


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #65153] Unexpected error when using the ~ output placeholder
Date: Fri, 19 Jan 2024 15:12:54 -0500 (EST)

Update of bug#65153 (group octave):

                  Status:               Confirmed => Ready For Test         
           Fixed Release:                    None => 9.1.0 (current stable) 
         Planned Release:                    None => 9.1.0 (current stable) 

    _______________________________________________________

Follow-up Comment #13:

I checked in the following change to make isargout(k) always return true for k
in the range 1:max(1,nargout).

http://hg.savannah.gnu.org/hgweb/octave/rev/56995fce2adc

So for now, code that uses isargout will continue to work, but it will be as
if there are no ignored outputs even when the function is called with a ~
placeholder in the output list. That’s what you would get with checking
nargout and that’s the best you can do with Matlab.

I also checked in the following change to replace all uses of isargout in
Octave functions with checks based on nargin:

http://hg.savannah.gnu.org/hgweb/octave/rev/c6ef7981b6f1

These changes were all made on stable then merged to the default and
bytecode-interpreter branches. If anyone objects, we can discuss whether it
would be better to do this work on default instead. But I’d prefer to make
this change on stable now rather than wait another year to begin this
process.

I'm marking this bug report as ready for test and if it looks good then I
think we could close it.  The tests that uses isargout have been updated to
check the current behavior and they should all pass.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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