As most of us would probably be aware, the include file syntax allows for two types of arguments/parameters: named and unnamed (numbered). But you cannot mix the two types.
The reason I want to do this is because I have a global directive defined which needs to keep it's value, but want to pass a directive of the same name with a different value to the include file. I also need to pass unnamed arguments. For example (doesn't work):
&global-define named-arg globalvalue
&global-define named-arg globalvalue
&scoped-define named-arg arg2
&undefine named-arg /undefine the scoped directive/
</pre>
As you've probably figured out yourself, mixing named and unnamed is somewhat problematic. Your solution is workable if you really need to use unnamed parameters, but the best approach by far is to only use named parameters.