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

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


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

FeepingCreature <default_357-line at yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |default_357-line at yahoo.de

--- Comment #10 from FeepingCreature <default_357-line at yahoo.de> ---
Why does this allow evaluating types as their stringof? That may be fine for a
debug tool like pragma(msg, but it's horrible for a mixin because it does the
very, very wrong thing. Ie. if you have a template with a parameter T
instantiated with int, then if you decide to use it as a mixin argument, you'll
get "int", not "T" - which is fine, but rapidly becomes not fine when it's a
private type in another module.

--


More information about the Digitalmars-d-bugs mailing list