2 problems I can't get my head around

jerro a at a.com
Mon Nov 26 05:56:57 PST 2012


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



More information about the Digitalmars-d mailing list