Bug 21782 – Add version variants for all cmd-line option checks

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-03-29T14:53:09Z
Last change time
2024-12-13T19:15:37Z
Assigned to
No Owner
Creator
Bolpat
Moved to GitHub: dmd#19901 →

Comments

Comment #0 by qs.il.paperinik — 2021-03-29T14:53:09Z
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
Comment #1 by robert.schadek — 2024-12-13T19:15:37Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19901 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB