66 std::set<std::string> dict;
76 std::string name =
id->
name ();
81 error (
"invalid use of ~ in output list");
83 else if (dict.find (name) != dict.end ())
86 error (
"'%s' appears more than once in parameter list",
97 std::string va_type = (type ==
in ?
"varargin" :
"varargout");
107 if (
id && id->
name () == va_type)
141 if (++count > nargout)
152 while (k < ignored.
numel ())
169 (
"Octave:undefined-return-values",
170 "%s: some elements in list of return values are undefined",
185 int nargin = args.
length ();
187 int expected_nargin =
length ();
191 for (
int i = 0; i < expected_nargin; i++)
199 if (args(i).
is_defined () && args(i).is_magic_colon ())
203 ::error (
"no default value for argument %d\n", i+1);
222 for (
int i = 0; i < len; i++)
232 std::list<std::string>
235 std::list<std::string> retval;
241 retval.push_back (elt->
name ());
249 const Cell& varargout)
257 else if (nargout <= len)
287 retval(i++) = varargout(j);
325 new_list->
append (elt->
dup (scope, context));
359 new_list->
append (elt->
dup (scope, context));