identity in Squeak

Stephen Pair spair at advantive.com
Sat Jun 15 18:40:50 UTC 2002


Because the compiler sees that those are the same strings of characters
and only makes one literal for both...to try and save a little space
presumably.

- Stephen

> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org 
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On 
> Behalf Of nicola farina
> Sent: Saturday, June 15, 2002 1:56 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: identity in Squeak
> 
> 
> hi all,
> just one question:
> 
> why in Squeak evaluating the command
>  'fooBar' == 'fooBar'
> returns true (as if were Symbols)?
> 
> Thanks,
> N.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup 
http://fifaworldcup.yahoo.com





More information about the Squeak-dev mailing list