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

          Issue ID: 24662
           Summary: Add a way to pass mixin arguments to pragma(msg)
                    before mixing in
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: qs.il.paperi...@gmail.com

There should be a way to quickly make a `mixin`
expression/declaration/statement be printed when generated. Essentially, the
arguments to `mixin` are passed to `pragma(msg)` before. It’s annoying to
duplicate the `mixin` arguments or have them passed to `text` and stored in an
`enum` just for debugging. My sense is that `mixin debug` would work as a
two-keyword keyword. (Note that `debug mixin` already has a meaning for
declarations and statements.)

--

Reply via email to