Compile time function execution...
Aarti_pl
aarti at interia.pl
Fri Feb 16 01:32:37 PST 2007
Frits van Bommel napisał(a):
> 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.
>
I think that it was just a great example of brain-time constant folding :D
Regards
Marcin Kuszczak
More information about the Digitalmars-d
mailing list