www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16436] New: Implement pragma(switches, "")


          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 puremagic.com
          Reporter: b2.temp 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.

Aug 27 2016