« Return to Thread: Block Equality?

Re: Block Equality?

by Keithy :: Rate this Message:

Reply to Author | View in Thread

Keith Hodges wrote:

> Mathieu Suen wrote:
>  
>> Yeap
>> http://bugs.squeak.org/view.php?id=6599
>>
>> On Dec 23, 2007, at 11:56 PM, Keith Hodges wrote:
>>
>>  
>>    
>>> I remember reading somewhere about a fix for testing block equality,  
>>> but
>>> cant remember where and I vaguely remember thinking it was
>>> mentioned on this list.
>>>
>>> can anyone enlighten me?
>>>
>>> Keith
>>>
>>> _______________________________________________
>>> SmallWiki, Magritte, Pier and Related Tools ...
>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>>>    
>>>      
> Ahh,
>
> I thought so, but... BlockContext doesnt have these
>
> Keith
>  
Mathieu,

will this do the trick?

BlockContext<<#= other

    self class == other class ifFalse: [^ false].
    self home == other home ifFalse: [^ false].
    ^ self startpc == other startpc

Keith


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

 « Return to Thread: Block Equality?