testing for deprecation

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 28 06:08:04 PDT 2017


On Saturday, 26 August 2017 at 07:17:49 UTC, user1234 wrote:
>
> getAttributes is made for UDAs only.

Okay, well if you change it to

deprecated {
     void foo();
}

void main() {
     pragma(msg, __traits(getFunctionAttributes, foo));
}

then you just get

tuple(@system)

so the issue still stands. I see no way to loop through members 
of a module at compile-time and exclude the ones that are 
deprecated.


More information about the Digitalmars-d-learn mailing list