Bug 20519 – string mixin with arglist evaluates types as stringof

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-01-20T11:28:23Z
Last change time
2024-12-13T19:06:55Z
Assigned to
No Owner
Creator
FeepingCreature
Moved to GitHub: dmd#19661 →

Comments

Comment #0 by default_357-line — 2020-01-20T11:28:23Z
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.
Comment #1 by robert.schadek — 2024-12-13T19:06:55Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19661 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB