[Issue 19292] New: Mixin expressions should take an argument list the same as pragma(msg) does

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 8 03:08:12 UTC 2018


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

          Issue ID: 19292
           Summary: Mixin expressions should take an argument list the
                    same as pragma(msg) does
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at digitalmars.com

Mixin expressions are currently limited to being strings:

  https://dlang.org/spec/expression.html#mixin_expressions

While they should accept what the more flexible pragma(msg) does:

  https://dlang.org/spec/pragma.html#msg

This will make more complex mixin expressions easier to write without depending
on Phobos for formatting, and will run faster and require less memory for CTFE
to evaluate.

--


More information about the Digitalmars-d-bugs mailing list