[Issue 1309] sorting arrays of structs is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 7 02:13:08 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=1309





------- Comment #3 from gide at nwawudu.com  2009-04-07 04:13 -------
The documentation for structs in associative array mentions that opCmp should
be declared as 'int opCmp(ref const MyStruct x) const', this definition should
be applied to standard arrays as well. The section 'Using Structs or Unions as
the KeyType' should be applied to standard and associative arrays. So maybe
this isue should be marked as a spec change?


-- 



More information about the Digitalmars-d-bugs mailing list