Why D is annoying =P

Mehrdad wfunction at hotmail.com
Wed Oct 24 13:50:38 PDT 2012


On Wednesday, 24 October 2012 at 20:47:30 UTC, H. S. Teoh wrote:
> Umm, the idea of a hash is to *quickly* compute a value that's 
> (mostly) unique for a given object. In most cases, the bit 
> representation is good enough.

I don't understand what you're saying.

hash(tuple("foo".dup))  MUST be equal to  hash(tuple("foo".dup")).

Bitwise hashing makes no sense whatsoever.


More information about the Digitalmars-d mailing list