Get attributes of type by string name

JS js.mdnq at gmail.com
Thu Aug 1 18:02:18 PDT 2013


how can I get the UDA's of a type that I only know by name and 
only in a CTFE.

I would like to loop over an array of names passed to a me(I 
don't know their contents beforehand) and get the attributes.

I've tried to use a mixin but I can't get the mixin to work on 
the string name...

e.g., mixin("alias a = __traits(getAttributes, "~type~");");


More information about the Digitalmars-d-learn mailing list