On 02.06.2010 00:15, Alexandre Bergel wrote:
Hi!
Apparently in Pharo 1.1, hash values may be greater than 4096. What is the
range of the hash values?
Cheers,
Alexandre
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Hash values could always be greater than 4096 :)
Identity hashes can't, but they are scaled in 1.1, to avoid bad
clustering for objects not redefining hash.
Basically they're multiplied by 2^18, which gives the largest possible
range while still keeping all small integers.
See ProtoObject>>identityHash for details, old identityHash is now
basicIdentityHash.
Cheers,
Henry
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project