Re: sort!(a b)( arr ); - opCmp

2011-06-17 Thread David Nadlinger
On 6/18/11 1:40 AM, Joel Christensen wrote: How do you override int opCmp( Object obj )? What can I do with obj? You can do pretty much whatever you want with it – obviously, you should not modify obj, because comparison is not generally expected to modify its arguments, but at the moment,

Re: sort!(a b)( arr ); - opCmp

2011-06-17 Thread Joel Christensen
Yeah, it works now. Thanks David :-) I have actually used type o = cast(type)variable; But had forgotten about it. Though the super part of what you said is more subtle.