[Issue 21782] New: Add version variants for all cmd-line option checks

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 29 14:53:09 UTC 2021


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

          Issue ID: 21782
           Summary: Add version variants for all cmd-line option checks
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: qs.il.paperinik at gmail.com

Using DMD command-line options,[1] one can (en/dis)able certain checks. Using a
version statement, one can conditionally compile code depending on *some* of
these options.

D should provide a version identifier (or keyword) for *every* check. That
identifier or keyword is exactly what it is in [1], and additionally, for every
version identifier/keyword stated, another equivalent identifier should be
available that starts with "check", in particular, I propose the following
names: checkAsserts, checkBounds, checkInContracts, checkInvariants,
checkOutContracts, checkFinalSwitch.

[1] https://dlang.org/dmd-windows.html#switch-check

--


More information about the Digitalmars-d-bugs mailing list