testing for deprecation

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 25 13:35:52 PDT 2017


On Thursday, 1 September 2016 at 11:13:42 UTC, rikki cattermole 
wrote:
>
> That is a first that somebody wanted it.
> Bug report please!

I just ran across this with

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

producing just tuple(). I came across this when looping through 
the members of a module and wanting to skip the deprecated ones.

I did a quick look in Bugzilla and didn't find anything. Do you 
know if anyone filed anything I may have missed?



More information about the Digitalmars-d-learn mailing list