Help!

Manu turkeyman at gmail.com
Mon Nov 26 09:34:43 PST 2012


On 26 November 2012 19:28, jerro <a at a.com> wrote:

> 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]))
>

>_< .. I feel like crying every time 'compiles' comes up.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121126/cccaeddf/attachment.html>


More information about the Digitalmars-d mailing list