On Thu, Dec 30, 2010 at 6:46 PM, gianvito <[hidden email]> wrote:
>
> Hi all,
> I'm writing C++ code...I pass a function and get it using
>
> octave_function func = args(0).function_value();
>
Don't do this unless you really want, because this will ignore
function overloads. If you want to call the function, you should
simply do:
octave_value_list args = ....//prepare arguments
octave_value_list retval = args(0).do_multi_index_op(nargout,
args);
> now...is possible to know how many arguments does that
function take in
> input? I searched for some function but haven't found
anything...
>
> Thanks
args.length()
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave