[BUG] Symbol>>hash

Stephan Rudlof sr at evolgo.de
Thu Aug 3 00:49:52 UTC 2000


Andres Valloud wrote:
> 
> Hi Bob.
> 

<snipped>

> > biggerHash
> >
> >         self size <= 2 ifTrue: [^self hash].
> >         ^self inject: self size into: [ :sum :each | (sum + sum + each asciiValue) bitAnd: 16rFFFFFF]
> 
> I think this was what the current hash was meant to avoid. Perhaps we
> could change it into something not so expensive, but simply better...
> something that gives you 24 bits of hash.

Possibly a field for a (plugin) primitive... (doing just the same as Bob's
or a similar method)

Stephan

> Andres.

-- 
Stephan Rudlof (sr at evolgo.de)
   "Genius doesn't work on an assembly line basis.
    You can't simply say, 'Today I will be brilliant.'"
    -- Kirk, "The Ultimate Computer", stardate 4731.3





More information about the Squeak-dev mailing list