> 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; }));
}