[Issue 21892] deprecation warning on reflection should be suppressed or at least suppressable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 21 11:30:17 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=21892
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |razvan.nitu1305 at gmail.com
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
This seems like a narrow use case. Why not just live with the deprecation? The
symbol is going to get removed anyway at some point.
I am saying this because there is no mechanism inside the compiler to skip
deprecations depending on context. Also, the behavior would most likely have to
be hidden behind a switch since other people might want to issue deprecations
when reflecting on deprecated methods. And we all know that Walter is against
adding more compiler switches.
This seems like a fairly complicated thing to implement for questionable
benefits.
--
More information about the Digitalmars-d-bugs
mailing list