Associative arrays, opCmp, opEquals and toHash in 2.066.0-b4
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jul 21 09:42:34 PDT 2014
Jacob Carlborg:
> If the struct already has opCmp I need to defined opEquals and
> toHash?
From what I know, the new hash protocol requires toHash and
opEquals. I think that now opCmp is not used by hashing. I don't
know if you define just toHash and opCmp it uses opCmp as
fallback.
Bye,
bearophile
More information about the Digitalmars-d
mailing list