help-octave
[Top][All Lists]
Advanced

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

varargin


From: John W. Eaton
Subject: varargin
Date: Thu, 27 May 1999 23:30:43 -0500 (CDT)

On 19-May-1999, Daniel Heiserer <address@hidden> wrote:

| how can I step through the input arguments using a parameter:
| e.g.
| ----------------------------------
| for iarg=1:nargin
|       s=varargin(iarg)
| end
| ----------------------------------

I don't think there is any way to mimic the behavior of varargin
without implementing it as a built-in function in C++.

Also, from what I understand of varargin, it would not be as simple as
just implmenting a function, because you would also have to modify the
parser to accept

  function foo (varargin)

as valid syntax to mean the same thing as

  function foo (...)


jwe



reply via email to

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