We simply must implement this for D to stay competitive

Dennis Ritchie via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 21 04:09:08 PDT 2015


On Sunday, 21 June 2015 at 10:26:03 UTC, Iain Buclaw wrote:
> Fun fact using macros:
>
> #define SIX 1+5
> #define NINE 8+1
>
> printf("What do you get if you multiply six by nine?  %d\n", 
> SIX * NINE);

Even I fell for this trick :)

#define square(x) x * x

square(5 + 1);


More information about the Digitalmars-d mailing list