[Issue 9395] Allow deprecated statement in enum members
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Feb 20 11:23:57 PST 2017
https://issues.dlang.org/show_bug.cgi?id=9395
Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |issues.dlang at jmdavisProg.co
| |m
--- Comment #2 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
This would definitely be nice. I ran into this problem when working on bindings
for Qt5. They have a number of enum members that they have added new names for
and then marked the old ones as deprecated, and while most declarations in D
can be marked as deprecated, the best that we can do here is say something in
the documentation. Now, that's all that Qt can do either, since it's C++, but
since pretty much any other declaration could be marked as deprecated in D,
this restriction is annoying and arguably inconsistent.
--
More information about the Digitalmars-d-bugs
mailing list