Arithmatic on a sub's parameters

Apr 13, 2010
318
7
63
The Hague
The description of the SET command states:
/A interprets non numeric strings in value as environment variable names whether or not preceded by a percent sign

When the environment variables are a sub's parameters that is not true.

Regards, DJ.
 
Before someone writes WAD here, let's agree that although the de facto implementation of the current technical design may indeed be correct, that doesn't make that same design in any way intuitive, sensible or user friendly.

If correctness of an implementation - given a technical design - is the criterium for being deemed "bona-fide" and the user does not have access to or influence on that design, reporting bugs will be a guessing game at best and should be removed from the forums user interface as a misleading feature.

Regards, DJ.
 
Charles is correct- GOSUB args are not environment variables, and cannot be used with SET /A.

And since SET /A is solely for compatibility with CMD (which doesn't support GOSUB args), and @EVAL provides a lot more options for TCC, that's unlikely to change.
 
Before someone writes WAD here, let's agree that although the de facto implementation of the current technical design may indeed be correct, that doesn't make that same design in any way intuitive, sensible or user friendly.

Sorry, DJ. I'm not trying to be an ass; that just kinda happens.
 

Similar threads