challenge: implement the max function

Carlos Santander csantander619 at gmail.com
Wed Jan 24 06:36:34 PST 2007


Andrei Alexandrescu (See Website For Email) escribió:
> Donth Ave wrote:
> 
>> c1) all involved values are totally ordered
> 
> Maximum implies some kind of ordering. To me using > versus <= is more 
> of an academic point than a practical one. Once you have one, you can 
> reasonably define all others.
> 

This is in fact a non-issue, as in D you only have to define opCmp and you get 
all of those.

-- 
Carlos Santander Bernal



More information about the Digitalmars-d mailing list