[GOODIE] Arithmetic assignments (+= and friends)
Andreas Raab
Andreas.Raab at gmx.de
Mon Jun 17 06:14:07 UTC 2002
> This is cool. I did 4 'printit'. Is the last one 'a *= b'
> expected ?
>
> a := 7 7
> b := 5 5
>
> a += b 12
> a *= b 35
If I do the above in the order written I get 60 as the result of "a *=
b"; I only get 35 if I don't evaluate "a += b" before. So, yes, that's
what is expected.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|