object.d and hash_t confusion?

Lionello Lunesu lio at lunesu.remove.com
Tue Jun 27 04:55:46 PDT 2006


xs0 wrote:
> 
>> On some platforms and at some time, even 64-bits won't be enough to 
>> handle toHash.
> 
> Don't you think a hash of 64 (or even 32) bits should always be enough? 
> If your hashing function is bad, no amount of bits will help, and if 
> it's good, 32 bits is enough for most everything, and 64 is definitely 
> enough for anything at all..

In fact, I think that a hash of 32-bit should indeed be enough for 
anything. Even a 64-bit pointer should be hashable in 32-bits, by using 
some logical operations (hi ^ lo?).

L.



More information about the Digitalmars-d mailing list