Arithmatic on a sub's parameters

Apr 13, 2010
318
7
62
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.
 
Apr 13, 2010
318
7
62
The Hague
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.
 

rconn

Administrator
Staff member
May 14, 2008
12,556
167
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.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,689
106
Albuquerque, NM
prospero.unm.edu
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