Very strange bug on Streams and probably compiler
Mathieu Suen
mathk.sue at gmail.com
Wed Feb 14 20:16:10 UTC 2007
On Feb 14, 2007, at 9:08 PM, Klaus D. Witzel wrote:
> On Wed, 14 Feb 2007 20:58:21 +0100, Bert Freudenberg wrote:
>
>> On Feb 14, 2007, at 20:27 , Roel Wuyts wrote:
>>
>>> 'foo' = 'foo' true "ok"
>>> 'foo' == 'foo' true "NOT OK"
>>> [...]
>>> I can only conclude that this is really not what you want.....
>>
>> Why? If you want to test for identity, use a Symbol.
>>
>> IMHO this is splitting hairs over a non-issue. The issue is
>> mutability of literals.
>
> ... which are not constants but objects created from literally
> descriptions, therefore their name :)
>
> IMHO Lukas had the best suggestion so far, something like a
> preference which demands to compile literals as if they where
> constants.
Yes but this will be messy since you don't know when you have to turn
it on or off. Isn't it?
Math
>
> /Klaus
>
>> - Bert -
>>
>>
>>
>>
>
>
>
More information about the Squeak-dev
mailing list
|