On 14 Apr 2007 at 1:34, der Mouse wrote:
Well, and, this is an expression rather than a
statement; you could do
things like R(X+(1->C))->A (somewhat akin to the way C lets you write
a=r[x+(c=1)]) - did any BASICs do that?
AFAIK, none of the usual suspects permit multiple assignments in a
statement. The odd thing is that GWBASIC will pass a statement of
the form X=Y=7, but Y will be 0 and X will be -1 at the conclusion
of execution, regardless of the value of y or x at the beginning.
OTOH, LET X=Y=3 will set both X and Y to 0. GWBASIC is full of
stuff like this.
And the way conditionals behaved. (Were there any
BASICs that let you
stack statements on a line and for which conditionals always controlled
the rest of the line?)
As in IF Z<> 1 THEN X=3 : Y=5 executing X=3 and Y=5 if and only if
Z isn't 1? Yes, many BASICs (including GWBASIC) do that.
Cheers,
Chuck