On 26 November 2012 15:56, jerro <span dir="ltr"><<a href="mailto:a@a.com" target="_blank">a@a.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That's sooo brutal! But it works, I'll use the first one, the second<br>
depends on i being an int.<br>
</blockquote>
<br></div>
You can also check if it is known at compile time like this:<br>
<br>
template knownAtCompileTime(alias a)<br>
{<br>
    enum knownAtCompileTime = is(typeof({ enum e = a; }));<br>
}<br>
</blockquote></div><br></div><div class="gmail_extra">That doesn't work, immutable breaks that test.</div>