[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49793] octave's inputParser only accepts vali
From: |
Amro |
Subject: |
[Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false |
Date: |
Thu, 8 Dec 2016 19:47:16 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:45.9) Gecko/20100101 Goanna/3.0 Firefox/45.9 PaleMoon/27.0.2 |
Follow-up Comment #9, bug #49793 (project octave):
An anonymous function is similar to a regular one defined as: "function
varargout = fcn(x)", and nargout will return -1 for both, just like MATLAB.
Hence I was checking "nout~=0" rather than "nout>0".
But you're right, my version won't work unless there was a fixed error
ID/message for the too-many-outputs case. Not to mention I assumed it was okay
to call the validation twice..
I don't know how hard it is, but I guess a fix for nargout is needed here.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49793>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false, anonymous, 2016/12/07
- [Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false, Amro, 2016/12/07
- [Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false, Amro, 2016/12/07
- [Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false, anonymous, 2016/12/08
- [Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false, Amro, 2016/12/08
- [Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false, John W. Eaton, 2016/12/08
- [Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false, John W. Eaton, 2016/12/08
- [Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false, Amro, 2016/12/08
- [Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false, Mike Miller, 2016/12/17
- [Octave-bug-tracker] [bug #49793] octave's inputParser only accepts validation functions that return true or false,
Amro <=