Hi,

I was watching to the Collection>>#hash implementation and I found something 
strange:
self size <= 10 ifTrue:
                                [self do: [:elem | hash := hash bitXor: elem 
hash]].

Can someone know why the contents are only considered for the hash if the 
collection size is below 10? Is that a bug or a feature?

Moreover, it is in contradiction with the end of the comment:
-- two equal objects have equal hash values

TIA,

Cheers,
Vincent

<<attachment: winmail.dat>>

Reply via email to