oadl::arg - return the n'th argument of the current procedure
oadl::arg(
n)
Returns the value of argument number n. Arguments are
numbered starting from 0. Throws the ArgCheck
exception if an invalid argument is referenced.
Returns a copy of the n'th argument passed to the current procedure
TypeCheck
will be thrown if n is not a
numeric scalar
ArgCheck
will be thrown if
n is not a valid argument number
proc foo() { "arg(0) = ", oadl::arg(0), '\n' } foo(3) arg(0) = 3