handling T.min the right way
mike
vertex at gmx.at
Mon Mar 19 13:09:37 PDT 2007
Am 19.03.2007, 20:13 Uhr, schrieb Andrei Alexandrescu (See Website For
Email) <SeeWebsiteForEmail at erdani.org>:
> The right way is to have T.min always return the minimum value (duh) and
> define a separate property T.min_positive.
Maybe min could take an enum as parameter:
' T.min(positive);
' T.min(negative);
with a default value so that T.min is still valid. Looks a lot more like D
and less like PHP :)
-mike
--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list