challenge: implement the max function

Bruno Medeiros brunodomedeiros+spam at com.gmail
Mon Jan 22 03:40:07 PST 2007


Don Clugston wrote:
>     }
>     static if(T.length > 2) {
>         alias maxtype!(maxtype!(T[0..1]), T[2..$]) maxtype;
>     }
> 
Shouldn't that be:
   alias maxtype!(maxtype!(T[0..2]), T[2..$]) maxtype;
(not really a relevant nitpick)

-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list