testing for deprecation

Sebastien Alaiwan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 28 22:03:39 PDT 2017


On Thursday, 1 September 2016 at 11:11:15 UTC, Cauterite wrote:
> How does one test whether a symbol is deprecated? I would have 
> expected something like: __traits(isDeprecated, foo).

Such a trait makes it possible to write code that will break, 
just because something has been marked as deprecated.

Doesn't it break the purpose of deprecation?



More information about the Digitalmars-d-learn mailing list