Help!

jerro a at a.com
Mon Nov 26 09:28:03 PST 2012


> However, going with that, the supplementary question is, how do 
> I then
> discover if bar[0] is a symbol or not? I can't see any traits 
> to test for
> builtin types...

You could use the fact that alias parameters can not be builtin 
types, like this:

template TestSymbol(alias a){}

  __traits(compiles, TestSymbol!(bar[0]))


More information about the Digitalmars-d mailing list