NAME

oadl::arg - return the n'th argument of the current procedure

SYNOPSIS

oadl::arg(n)

DESCRIPTION

Returns the value of argument number n. Arguments are numbered starting from 0. Throws the ArgCheck exception if an invalid argument is referenced.

RETURN VALUE

Returns a copy of the n'th argument passed to the current procedure

ERRORS

TypeCheck will be thrown if n is not a numeric scalar
ArgCheck will be thrown if n is not a valid argument number

EXAMPLE

    proc foo()
    {
        "arg(0) = ", oadl::arg(0), '\n'
    }

    foo(3)
arg(0) = 3

SEE ALSO

nargs
argvec