Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done Switches for other than only the 1st argument

Dec
73
1
Some commands allow multiple arguments, one example is setarray:

SETARRAY [/F /T:type /R filename arrayname] name[a[,b[,c[,d]]]] [...]

Obviously, the switches like /f are only meant to work on the first arrayname, the others are not tainted by it - resulting in a behavior like this:

[C:\]*setarray x[2] y[2] z[2]
[C:\]*setarray /f x[3] y[3] z[3]
TCC: Array variable is already defined "y"
TCC: Array variable is already defined "z"
[C:\]


It would be nice to allow for multiple switches to prefix indivdual arguments, or to have the switches affect all arguments - which would result in this (probab more intuitive, ymmv) behavior:

[C:\]*setarray x[2] y[2] z[2]
[C:\]*setarray /f x[3] y[3] z[3]
[C:\]


... or (multiple switches variant) ...

[C:\]*setarray x[2] y[2] z[2]
[C:\]*setarray /f x[3] /f y[3] z[3]
TCC: Array variable is already defined "z"
[C:\]


Thanks for taking it into consideration, having multple set, unset and so on saves a lot of visual space in the btm file and might even be faster(?).
 
Back
Top