max() in phobos, and English logic operators

mike vertex at
Wed Nov 8 08:14:39 PST 2006

Am 08.11.2006, 06:35 Uhr, schrieb David Qualls <davidlqualls at>:

> After looking at the mass of code it takes to implement a simple
> generic max() or min() function in D, I'm really starting to pine
> for my C preprocessor...
> #define max(a,b) ((a)>(b)?(a):(b))

Hmm, if you really want to you could run D code through CPP anyway before  
passing it to DMD. Shouldn't be that hard to make a script for that.


Erstellt mit Operas revolutionärem E-Mail-Modul:

More information about the Digitalmars-d-learn mailing list