[Top][All Lists]

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

Re: Get function arguments number

From: Søren Hauberg
Subject: Re: Get function arguments number
Date: Sun, 02 Jan 2011 12:00:05 +0100

søn, 02 01 2011 kl. 02:54 -0800, skrev gianvito:
> Eheh right...
> but I'd like to accept only function with 2 arguments as input and
> raise an error when the function has a different number of arguments
> or a variable numbers of arguments... 
> isn't possible at all to do this check?

I don't think so; the Octave language does not enforce many constaints.
You can try to call the function and see if it reports an error. But it
sounds to me like you are expecting Octave to behave more like C++ than
like Octave.


reply via email to

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