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

Igor Stasenko siguctua at gmail.com
Mon Aug 13 19:18:19 UTC 2007


On 13/08/07, nicolas cellier <ncellier at ifrance.com> wrote:
>
> Andreas, as you can see even symmetry is not yet there...
> As soon as a bug is fixed, one other makes surface, try:
>
>         'A' asText = 'A'.       "true"
>         'A' = 'A' asText.       "false"
>
yes, coercion makes the difference:

#symbol asString = 'symbol'  "true"
'symbol'  = #symbol asString "true"

#symbol = 'symbol'  asSymbol "true"

> Playing with = is something dangerous...
>
> Nicolas
>
>
>


-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list