Newbie question

Bert Freudenberg bert at freudenbergs.de
Tue Jul 24 10:11:18 UTC 2007


On Jul 24, 2007, at 12:06 , subbukk wrote:

> On Tuesday 24 July 2007 2:21 am, Bert Freudenberg wrote:
>> No, it is equivalent to
>>
>> 	a := 1.
>> 	b := 2.
> This interpretation implies the sequence eval-assign-eval-assign  
> instead of
> eval-eval-assign-assign. If a=1 and b=2 just before evaluating the  
> statement
>   {a . b } := { 5 . a+2 }
> then b=7 per above interpretation while b=3 if braces are evaluated  
> before
> assignment. Are brace elements fully evaluated before assignment?

Yes. Right-hand-side was evaluated first.

And mind that this is *not* supported by the compiler anymore.

- Bert -





More information about the Squeak-dev mailing list