July 15 [Issue 24662] New: Add a way to pass mixin arguments to pragma(msg) before mixing in | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: qs.il.paperinik@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.) -- |
Copyright © 1999-2021 by the D Language Foundation