[BUG] Compiler, become: and String literals.
Yoshiki Ohshima
Yoshiki.Ohshima at acm.org
Sun Sep 21 14:23:17 UTC 2003
Hello,
> If I print this in a workspace (or even code it in a method) I get
>
> a := 'ab'.
> b := 'cd'.
> a become: b.
> a = 'cd'
>
> --> false
As Andreas says, the compiler merges the literals. Note that,
probably you've already noticed, if you evaluate the above lines one
by one, the last answer will be true. Funky, isn't it?^^;
-- Yoshiki
More information about the Squeak-dev
mailing list
|