www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19292] New: Mixin expressions should take an argument list


          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 puremagic.com
          Reporter: bugzilla digitalmars.com

Mixin expressions are currently limited to being strings:


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


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.

Oct 07 2018