Arithmatic on a sub's parameters

Apr 13, 2010
298
7
60
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
298
7
60
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
11,926
133
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,222
78
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.
 
Thread starter Similar threads Forum Replies Date
M Support 14