Compile time function execution...

Michiel nomail at please.com
Fri Feb 16 12:53:09 PST 2007


Dave wrote:

>> Aggh, that's a compiler bug.
>>
>> int foo = square(5);
>>
>> does work. I knew I'd never get it right the first try :-(
> 
> Wait -- int foo = square(5); is supposed to CTFE? If so that'd be awesome.

I don't think so. If I'm not mistaken, D would do that at runtime at the
moment.

-- 
Michiel



More information about the Digitalmars-d mailing list