WAT: opCmp and opEquals woes

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 25 14:05:13 PDT 2014


On 7/25/2014 12:03 PM, "Marc Schütz" <schuetzm at gmx.net>" wrote:
> No, if a type had only defined opCmp because of the previous AA
> (mis)implementation,

It was not a misimplementation. The previous implementation used a hash lookup 
with a binary tree for collisions, hence it needed cmp. It was perfectly 
correct. The newer one uses a linear list for collisions, hence it only needs ==.


More information about the Digitalmars-d mailing list