[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Autoexec.nt commands




> Hmmm. Maybe it's because you use: "set oui=Y" not "set %oui%=Y"

It's because you don't SET (establish) the result, you establish
the variable. The variable is named "oui"; the result (the
value|content) is "%oui%".
Okay, I get it. I think that does mean it's a use/mention distinction: you
use the variable to deal with its value (if %oui%=y); you mention the
variable to establish its value (set oui=Y).
BATCH has a different syntax for the
variable itself, and for the content of the variable. I don't
know of any language where you can write to the content directly

In BASIC you can.
You can't say "4=3", but you
can say "variable OUI, which formerly equalled 4, now equals 3".
Thanks. That's what I suspected. But BASIC is maybe hiding this from the
user, because in it you can say "If A=4 then A = 3." I admit that stunned
me when I first came across it, in 1981, (how can 4 = 3?).
-----------------------------
Robert Holmgren
holmgren@xxxxxxxx
-----------------------------


Harry Binswanger
hb@xxxxxxxx