[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41992] inputname fails for arguments stemming
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #41992] inputname fails for arguments stemming from a list |
Date: |
Wed, 25 Nov 2015 23:48:30 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 |
Update of bug #41992 (project octave):
Release: 3.8.1 => dev
_______________________________________________________
Follow-up Comment #3:
It seems pretty clear that Matlab expands any inputs to a function, such as
comma-separated lists, before creating the input argument list. Octave seems
to do the reverse and makes the list of inputs directly from what is available
in the parser.
For reference, the code to modify is in ov-usr-fcn.cc. The function that
populates the symbol table is
bind_automatic_vars (arg_names, nargin, nargout, all_va_args (args),
lvalue_list);
It is the arg_names variable which is different than expected.
Before this gets fixed, which may never happen, I have re-written inputname so
that it at least won't issue strange index out-of-bound errors. See
http://hg.savannah.gnu.org/hgweb/octave/rev/2892f62fb37c.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41992>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41992] inputname fails for arguments stemming from a list,
Rik <=