challenge: implement the max function

Lionello Lunesu lio at lunesu.remove.com
Mon Jan 22 23:06:00 PST 2007


Donth Ave wrote:
> == Quote from Lionello Lunesu (lio at lunesu.remove.com)'s article
>> T[0]>T[1]
> To have a total ordering is also an additional requirement not present
> in the challenge.
> --
> Anonymity is not a Crime
> 

typeof(0?T[0]:T[1]) seems to work fine though. The compiler picks the 
"smartest" type.



More information about the Digitalmars-d mailing list