[Issue 20519] New: string mixin with arglist evaluates types as stringof

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 20 11:28:23 UTC 2020


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

          Issue ID: 20519
           Summary: string mixin with arglist evaluates types as stringof
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: default_357-line at yahoo.de

Since https://issues.dlang.org/show_bug.cgi?id=19292 , mixin() behaves like
pragma(msg). pragma(msg), for convenience, transforms types into their
stringof. This is a terrible behavior for mixin, because the stringof will
generally not be visible from the point where you're mixing the string in. This
functionality should be disabled for string mixin arguments.

--


More information about the Digitalmars-d-bugs mailing list