One more about mixins

BCS ao at pathlink.com
Sun Aug 24 20:45:48 PDT 2008


Reply to Tomasz,

> BCS Wrote:
> 
>> using CTFE (compile time function evaluation) with arrays is
>> "finicky"
>> 
> so I noticed:)
> 
>> To limit the problem to the CTFE issues switch to this:
>> 
>> pragma(msg, intGen("aa", "bb", "cc"));
>> 
>> Post the error messages from that if you can't figure them out.
>> 
> It says  intGen("aa", "bb", "cc") can't be evaluated at compile
> time... I don't see why, all of its arguments are known at compile
> time and the function doesn't refer to anything outside its body...
> 

The CTFE engine is insanely limited and I can't seem to find the docs. You 
might search in the buzilla for closed bugs with CTFE.

Looking at that error I'm not shure what was happening, sorry




More information about the Digitalmars-d-learn mailing list