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