Avoiding __traits(getAttributes, ...) on alias
Philippe Sigaud via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat May 10 02:56:07 PDT 2014
> else // doesn't compile, member is not accessible error
> foreach (type; __traits (getAttributes, mixin(`T.`~member)))
> static if (is (type == attribute))
> return true;
> return false;
> Maybe its trying to use it inside of __traits that is causing it?
Maybe __traits is trying to extract attributes from the mixin
expression, before the mixin injection?
That looks like a bug to me, no?
More information about the Digitalmars-d-learn
mailing list