On 11/27/2012 11:36 PM, Gor Gyolchanyan wrote:
It has to be in a single function. Suppose you have a variety of modules
each of which has a variety of types. And you need to compose a
compile-time string which involves all those types and you need to mix
that string in at some point. You can't do that.

I don't see any reason why that wouldn't work now. CTFE is not limited to one function.

    enum i = foo() + foo();
    pragma(msg, i);

prints 20.

Reply via email to