challenge: implement the max function

Don Clugston dac at nospam.com.au
Mon Jan 22 21:01:11 PST 2007


Donth Ave wrote:
> Don Clugston Wrote:
>> Not too terrible.
> But what if classes are allowed?
> --
> Anonymity is not a Crime

Actually, it satisfies *all* of the requirements if classes are allowed.

eg
A a = new A;
A b = new B;
max(a, b)*=0.6; // compiles OK.



More information about the Digitalmars-d mailing list