[squeak-dev] The Trunk: Collections-nice.386.mcz

Levente Uzonyi leves at elte.hu
Fri Oct 1 21:42:59 UTC 2010


On Fri, 1 Oct 2010, Nicolas Cellier wrote:

> 2010/10/1 Levente Uzonyi <leves at elte.hu>:
>> On Fri, 1 Oct 2010, commits at source.squeak.org wrote:
>>
>>> Nicolas Cellier uploaded a new version of Collections to project The
>>> Trunk:
>>> http://source.squeak.org/trunk/Collections-nice.386.mcz
>>>
>>> ==================== Summary ====================
>>>
>>> Name: Collections-nice.386
>>> Author: nice
>>> Time: 1 October 2010, 10:37:30.237 pm
>>> UUID: 14bfeb25-a255-4838-87d4-4c4dccac4b2d
>>> Ancestors: Collections-nice.385
>>>
>>> Remove #hashMappedBy: and #identityHashMappedBy:
>>
>> I was thinking about this too, but if I'm not mistaken SystemTracer uses
>> these methods. If so, then these methods should be added to that package.
>> I'll check it later.
>>
>>
>> Levente
>>
>
> Check whether #newHash: is defined too.

Both #hashMappedBy: and #identityHashMappedBy: is used by the 
SystemTracer. #newHash: is defined by the SystemTracer. I'll move 
#hashMappedBy: and #identityHashMappedBy: there.


Levente

>
>>>
>>> =============== Diff against Collections-nice.385 ===============
>>>
>>> Item was removed:
>>> - ----- Method: Array>>hashMappedBy: (in category 'comparing') -----
>>> - hashMappedBy: map
>>> -       "Answer what my hash would be if oops changed according to map."
>>> -
>>> -       self size = 0 ifTrue: [^self hash].
>>> -       ^(self first hashMappedBy: map) + (self last hashMappedBy: map)!
>>>
>>> Item was removed:
>>> - ----- Method: Interval>>hashMappedBy: (in category 'comparing') -----
>>> - hashMappedBy: map
>>> -       "My hash is independent of my oop."
>>> -
>>> -       ^self hash!
>>>
>>> Item was removed:
>>> - ----- Method: LookupKey>>hashMappedBy: (in category 'comparing') -----
>>> - hashMappedBy: map
>>> -       "Answer what my hash would be if oops changed according to map."
>>> -
>>> -       ^key hashMappedBy: map!
>>>
>>> Item was removed:
>>> - ----- Method: LookupKey>>identityHashMappedBy: (in category 'comparing')
>>> -----
>>> - identityHashMappedBy: map
>>> -       "Answer what my hash would be if oops changed according to map."
>>> -
>>> -       ^ key identityHashMappedBy: map!
>>>
>>> Item was removed:
>>> - ----- Method: String>>hashMappedBy: (in category 'comparing') -----
>>> - hashMappedBy: map
>>> -       "My hash is independent of my oop."
>>> -
>>> -       ^self hash!
>>>
>>> Item was removed:
>>> - ----- Method: WeakKeyAssociation>>hashMappedBy: (in category
>>> 'comparing') -----
>>> - hashMappedBy: map
>>> -       "Answer what my hash would be if oops changed according to map."
>>> -
>>> -       ^self key hashMappedBy: map!
>>>
>>> Item was removed:
>>> - ----- Method: WeakKeyAssociation>>identityHashMappedBy: (in category
>>> 'comparing') -----
>>> - identityHashMappedBy: map
>>> -       "Answer what my hash would be if oops changed according to map."
>>> -
>>> -       ^ self key identityHashMappedBy: map!
>>>
>>>
>>>
>>
>>
>
>


More information about the Squeak-dev mailing list