Bug 24662 – Add a way to pass mixin arguments to pragma(msg) before mixing in

Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-07-15T13:01:27Z
Last change time
2024-12-13T19:36:25Z
Assigned to
No Owner
Creator
Bolpat
Moved to GitHub: dmd#20485 →

Comments

Comment #0 by qs.il.paperinik — 2024-07-15T13:01:27Z
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.)
Comment #1 by dkorpel — 2024-07-15T19:29:17Z
You can inspect the mixin output with the `-mixin=mymixins.d` switch
Comment #2 by robert.schadek — 2024-12-13T19:36:25Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20485 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB