On Monday, 28 August 2017 at 21:29:31 UTC, Jonathan M Davis wrote:
I think that it's pretty clear that a new traits for __traits
would be required. Per the documentation, getFunctionAttributes
does not include anything about deprecation, and even if it
did, it wouldn't be sufficient anyway, because it would only
cover functions, whereas almost any symbol that isn't local to
a function can be deprecated (the only case I can think of at
the moment where you can't deprecate a symbol that isn't inside
a function is enum members, which can't be individually
deprecated, because you can't apply any attributes to them
individually). We'd probably need something like
__traits(isDeprecated, symbol).
https://issues.dlang.org/show_bug.cgi?id=17791
- Jonathan M Davis
Thanks for filing that!