Very strange bug on Streams and probably compiler
Klaus D. Witzel
klaus.witzel at cobss.com
Wed Feb 14 16:54:07 UTC 2007
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
>
More information about the Squeak-dev
mailing list
|