[OT]Re: [BUG]Collection>>removeAll:

Brian Keefer squeak-dev at lists.squeakfoundation.org
Sat Sep 7 22:19:43 UTC 2002


Brian Keefer wrote:

> On a completely different matter, is Object>>hash safe? It seems to use
> the OOP address (as in a C pointer), which could change with each
> incremental GC.
> 

Oh yeah, the hash bits remember it. As far as I can figure out, the first
call to #hash sees the object  header's hash bits set to 0, and makes one
up then. Further calls to #hash see a nonzero value, and return the hash
value. 

Now, how do I clear my "stupid" bit?



More information about the Squeak-dev mailing list