[Issue 16436] New: Implement pragma(switches, "")
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Aug 27 11:44:24 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16436
Issue ID: 16436
Summary: Implement pragma(switches, "")
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: b2.temp at gmx.com
Allowing to set the globals during compilations, useful for single file modules
and short scripts example:
pragma(switches, -inline -O)
This would require to isolate argument parsing from mars.d in a templatized
function so that it can be reused when the pragma is processed in attributes.d.
Also some switches should not be accepted when passed through the pragma.
--
More information about the Digitalmars-d-bugs
mailing list