Compile time function execution...

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Fri Feb 16 01:27:40 PST 2007


Derek Parnell wrote:
> On Thu, 15 Feb 2007 17:52:38 -0700, Russell Lewis wrote:
>> if it took 7.5 million years to run on a supercomputer, how long is it 
>> going to take to run on your compiler?
> 
>   int CalculateTheAnswerToLifeUniverseEverything() { return 42; }

No, the function name says *calculate*, not *return* :P.

Also, nitpick: wasn't it "The Answer To _The Ultimate Question_ Of Life, 
the Universe and Everything"? (i.e. you missed a bit ;) )



More information about the Digitalmars-d mailing list