User Defined Attributes
Tove
tove at fransson.se
Thu Nov 8 13:11:25 PST 2012
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.
More information about the Digitalmars-d-announce
mailing list