On Wednesday, 7 November 2012 at 08:41:48 UTC, Walter Bright wrote:
New version up now with a couple reported problems with UDA fixed.

I may have found a little glitch...?

mixin("[1] int a;");
["[2] int b;"] int c;
mixin(__traits(getAttributes, c)[0]);

pragma(msg, __traits(getAttributes, a)); => tuple()
pragma(msg, __traits(getAttributes, b)); => tuple()


The use-case for this is parsing a foreign language which will be compiled to mixed in d-code.

Reply via email to