Annoying deprecation messages when using EnumMembers with enum that has deprecated members
feepingcreature at gmail.com
Tue Oct 8 04:31:22 UTC 2019
On Sunday, 6 October 2019 at 07:58:41 UTC, uranuz wrote:
> Hello! I don't no if such behaviour was made by intention or
> just an accident, but this is very annoying. There is bugzilla
> issue already for that. So I am not the only person who is
> concerned about this.
> I try to support my compiler output as clear as possible, so if
> there is some real errors. So I could find these errors as fast
> as possible without scrolling several `screens` of text about
> warnings that I am actulally unable to fix.
> This error occurs when I am using std.conv: to with std.json in
> my code. So I am not the person who actually marked these enum
> members deprecated. So I can't do something with this.
I also think it would be useful to have some way to suppress
deprecations in a block of code. This is going to become
important in the next version of D, where deprecated unittests
will become basically impossible to use with unit-threaded
because there'll be no way for unit-threaded to call a deprecated
unittest without incurring a deprecation message. (That I can
More information about the Digitalmars-d