SED - Argument Passing |
![]() ![]() ![]() |
Any user written PROC or FUNC may take arguments. The actual number the compiler expects to pass is determined by the first reference to that PROC or FUNC and is checked at run time against the number that are expected by the called item.
To declare arguments in a PROC, it is written as
PROC ARGS arg1, arg2, arg3... ( ...operations... )
The arg1, arg2, etc. items are local variables into which the argument values are to be transfered when the procedure is called. |