[Issue 16025] New: mixin myTemplate should throw an error

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat May 14 12:00:44 PDT 2016


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

          Issue ID: 16025
           Summary: mixin myTemplate should throw an error
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: greensunny12 at gmail.com

problem:

mixin myTemplate; // silently doesn't work
mixin(myTemplate);

solution:
1) Throw an error for the silent case
2) allow mixin statements without parenthesis (preferred solution)

--


More information about the Digitalmars-d-bugs mailing list