On 1/28/2012 7:24 AM, Robert Clipsham wrote:
On 28/01/2012 15:13, Manu wrote:
Sweet, I'll do that for now.
You mean static if() right?

No, I mean if().

__ctfe is a magic variable, and during CTFE it is true, at run time it is false. As it is a variable and not a constant, it cannot be read at compile time, so static if() won't work.

See also:
http://dlang.org/function ctrl+f for __ctfe

Why isn't it a constant? o.O

Reply via email to