[Issue 20982] New: Add a pragma to suppress deprecation messages

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 26 20:55:43 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20982

          Issue ID: 20982
           Summary: Add a pragma to suppress deprecation messages
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: andrei at erdani.com

In introspection code, often just enumerating the members of a type with
deprecated members will issue deprecated warnings.

We'd need a pragma(deprecated, false) directive to temporarily disable
deprecation messages. Then pragma(deprecated, restore) to restore to its set
value.

--


More information about the Digitalmars-d-bugs mailing list