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

Andrew Tween amtween at hotmail.com
Fri Aug 10 21:53:43 UTC 2007


"Yoshiki Ohshima" <yoshiki at squeakland.org> wrote in message 
news:u7io3rrzf.wl%yoshiki at squeakland.org...
>  Andrew,
>
>> No. It think it will still be ok.
>>
>> ((((Character value: 6543) asString , $- asString) at: 2) == $- ) -> true
>>
>> I only have literal chars on the right hand side of the ==.
>> Literal chars can only be < 256 , and are unique.
>
>  This is just a nit-picking, but of course literal chars can be >=
> 256.  You can write an expression at the end of this email in a
> Workspace.

Ah. Cool. I didn't know (or forgot) that. It works in methods too.

(If I replace 'Literal chars can only be < 256' with 'The only literal chars 
that I compare against are < 256' , then I think that my reasoning about not 
breaking things is then valid)
Cheers,
Andy

>
> -- Yoshiki
>
> =====
> aStream next == $$B$"(B
> aStream next = $$B$$(B
> =====
>
> 





More information about the Squeak-dev mailing list