Identity vs equality (was Re: [Newbies] Assignment)
Göran Krampe
goran at krampe.se
Fri Aug 10 14:05:21 UTC 2007
Hi!
> For sure, #== has been used with Symbols which can compare really fast
> instead of enumerating characters...
>
> But since in modern Squeak 'Hello' = #'Hello', i'am not sure that old
> style optimizations #== don't introduce bugs now...
>
> Nicolas
Hmmm, odd:
'Hello' = #'Hello' -> true
#'Hello' = 'Hello' -> false
...that seems to indicate something is a bit wrong. ;)
regards, Göran
More information about the Squeak-dev
mailing list
|