
args - access to procedure parameters

Calling sequence:
args()
args(integer)
args(integer_1..integer_2)

Parameter:
integer                --  non-negative integer
integer_1, integer_2   --  positive integers

Summary:

args permits accessing of the actual parameters of a procedure and therefore
can only be used in procedures and pure functions.

If args is called with no further parameters, then an expression sequenceof
all parameters is returned.  The expression args(0) returns the number of
actual parameters.  By using args(i) the i-th parameter can be accessed.
With args(i..j) an expression sequence containing the i-th up to the j-th
parameter is returned.

With args the parameters are not evaluated again.  However an explicit
evaluation is possible by using the function eval.

With the expression procname (args()) it is possible to return the call of a
procedure with evaluated arguments. args is a kernel function.

>>  f:=proc(a) begin [args()],[args(0)] end_proc: f(3, 4);

      [3, 4],[2]

>>  f:=proc(a) begin args(1) end_proc: f(2, 3);

      2

See also:  procname , eval

