Identity vs equality (was Re: [Newbies] Assignment)

Andres Valloud AVALLOUD at roadrunner.com
Sat Aug 11 18:29:44 UTC 2007


stephane ducasse wrote:
>>>
>>> 'Hello' = #'Hello' -> true
>>>
>>> #'Hello' = 'Hello' -> false
>>>
>>> ...that seems to indicate something is a bit wrong. ;)
>>>
>>> regards, Göran
>>
>> In 3.10 they both evaluate to true.
>
> Why does it make sense?
> I do not understand why #'hello' as a symbol should be = to 'hello'.
>
> It would have been good that such an important change would have been 
> discussed
> on the mailing-list.
>
> Stef
I hate to bring this up, but Luciano Notarfrancesco and myself fixed 
this back in August of 2000.

Thanks,
Andres.



More information about the Squeak-dev mailing list