On 26 November 2012 15:56, jerro <[email protected]> wrote:

> That's sooo brutal! But it works, I'll use the first one, the second
>> depends on i being an int.
>>
>
> You can also check if it is known at compile time like this:
>
> template knownAtCompileTime(alias a)
> {
>     enum knownAtCompileTime = is(typeof({ enum e = a; }));
> }
>

That doesn't work, immutable breaks that test.

Reply via email to