std.array suggestion

Stewart Gordon smjg_1998 at yahoo.com
Thu Mar 9 08:13:15 PST 2006


Oskar Linde wrote:
<snip>
> T[] doSort(T[], delegate|function wrongOrder(T,T));
<snip>

You've left off the return type of wrongOrder.  Moreover, why the name 
wrongOrder?  To simply return whether or not these two elements are out 
of order?  Why not use what people are used to, i.e. a function that 
returns -ve, 0 or +ve for <, = or > respectively?

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:- C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- 
PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.



More information about the Digitalmars-d mailing list