On Mar 19, 2013, at 13:39, John Ehrman wrote:

> JRBodoh asked:
>> Is there an easy way to pass the entire &SYSLIST to an internal macro for
> processing?
>
> I know of no way to do this other than to enumerate the list items, as in
>
>    MACROX   A,&SYSLIST(1),&SYSLIST(2),...
>
> for as many arguments as you know are likely to be passed.  Inelegant, but
> workable.
>
Feels like a Requirement.

I'm so accustomed to the "$@" construct and the "shift" command
in POSIX shell that it seems a travesty that any macro processor
not have similar.

Perhaps something like a BIF:

    MACROX  SUBLIST($SYSLIST,2:*)

i.e. omit &1 and pass &2 through &(as many as there are) as separate
arguments to MACROX.

-- gil

Reply via email to