[Issue 24662] New: Add a way to pass mixin arguments to pragma(msg) before mixing in
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 15 13:01:27 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24662
Issue ID: 24662
Summary: Add a way to pass mixin arguments to pragma(msg)
before mixing in
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: qs.il.paperinik at gmail.com
There should be a way to quickly make a `mixin`
expression/declaration/statement be printed when generated. Essentially, the
arguments to `mixin` are passed to `pragma(msg)` before. It’s annoying to
duplicate the `mixin` arguments or have them passed to `text` and stored in an
`enum` just for debugging. My sense is that `mixin debug` would work as a
two-keyword keyword. (Note that `debug mixin` already has a meaning for
declarations and statements.)
--
More information about the Digitalmars-d-bugs
mailing list