https://issues.dlang.org/show_bug.cgi?id=23728
Issue ID: 23728
Summary: Add `version(debug)`
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Code controlled by `version(debug)` is compiled in when the `-debug` flag is
passed to the compiler.
Although `debug` is conditional compilation on its own, it also allows
statements that would otherwise not be allowed, e.g. impure statements in
`pure` functions, and `version(debug)` would have no special exceptions like
that.
--