opCmp with structs

Alex via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 7 03:15:39 PST 2015


On Saturday, 7 November 2015 at 10:24:03 UTC, BBaz wrote:

> void main()
> {
> 	ku*[] tt = [new ku(2),new  ku(1)];
> 	sort(tt);
> }

Don't really like this ;) not because
writeln(tt);
doesn't work any more, but because I have to think about where to 
use pointers and where not...




More information about the Digitalmars-d-learn mailing list