Why Does Dscanner Warn About a Missing toHash if opEquals is Defined?

Jack Stouffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 31 11:57:50 PDT 2016


On Sunday, 31 July 2016 at 17:48:48 UTC, BLM768 wrote:
> writeln(n1.hashOf == n2.hashOf); // false = BAD!

Ok, yeah that is bad.

Next question: what's the fastest hashing implementation that 
will provide the least collisions? Is there a hash implementation 
that's perfered for AAs?



More information about the Digitalmars-d-learn mailing list