On 26 November 2012 19:28, 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">
However, going with that, the supplementary question is, how do I then<br>
discover if bar[0] is a symbol or not? I can't see any traits to test for<br>
builtin types...<br>
</blockquote>
<br></div>
You could use the fact that alias parameters can not be builtin types, like this:<br>
<br>
template TestSymbol(alias a){}<br>
<br>
 __traits(compiles, TestSymbol!(bar[0]))<br>
</blockquote></div><br></div><div class="gmail_extra">>_< .. I feel like crying every time 'compiles' comes up.</div>