« Return to Thread: Block Equality?

Re: Block Equality?

by Mathieu SUEN :: Rate this Message:

Reply to Author | View in Thread

I think that defining #= on blockContext is ok.
AFAIK No one in the image use it.



On Dec 24, 2007, at 12:41 AM, Keith Hodges wrote:

> Ok spoke too soon..
>
> BlockContext>>#= other
>
>    self class == other class ifFalse: [^ false].
>    self home receiver == other home receiver ifFalse: [^ false].
>    self home selector == other home selector ifFalse: [^ false].
>    ^ self startpc == other startpc
>
> If I am handed two block contexts that are defined in the same place  
> and
> have the same contents etc then identiy comparison returns false. the
> above works.
>
> Are you saying that defining #= on BlockContext like this is wrong or
> will break something?
>
> thanks in advance
>
> Keith
>
> p.s. it would help to know because I am finding it rather useful
>
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki

        Mth




_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

 « Return to Thread: Block Equality?

LightInTheBox - Buy quality products at wholesale price