How to override opCmp when two different sorts are needed?

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Tue Aug 14 14:55:16 PDT 2007


BCS wrote:
> // overlay array with new struct array and sort that
> (cast(FooWrap*)f.ptr)[0..f.length].sort

That probably looks better as "(cast(FooWrap[]) f).sort", which should 
be equivalent.



More information about the Digitalmars-d mailing list