sort!("a < b")( arr ); - opCmp

Joel Christensen joelcnz at gmail.com
Fri Jun 17 16:40:40 PDT 2011


How do you override "int opCmp( Object obj )"? What can I do with obj? 
The override is in a class with a double number to compare with.

I made a list of my own class objects but I haven't managed to use 
`sort!"a < b"( arr );` on it. int's and string's work on it.

http://p.baf.cc/3876

--joelcnz


More information about the Digitalmars-d-learn mailing list