Hi Lukas,
on Wed, 14 Feb 2007 17:48:40 +0100, you wrote:
As Bert wrote: it's normal :)
I agree, looks completely normal to me.
[Okay okay other languages have immutable string, but this is Smalltalk.]
If we had an immutability bit, that the compiler would set for objects in the literal array (and with what we could do a lot of other cool stuff), then people would not run into such problems.
Since I cannot (stupid me ;-) think of a counterexample which would break existing code, I second you (perhaps in the new compiler? without modifying the VM?).
/Klaus
Cheers, Lukas