mixin under -betterC
Julian Fondren
julian.fondren at gmail.com
Thu Nov 23 18:54:09 UTC 2023
On Thursday, 23 November 2023 at 17:46:55 UTC, DLearner wrote:
> I just find it surprising that your suggestion worked, but the
> (slightly simpler) earlier version did not.
The `enum` answer? That also works, but you have to make a change
at the callsite as well, to `mixin(mxnTest!("Var_A", "Var_B"));`
- passing the strings as template rather than functional
arguments.
More information about the Digitalmars-d-learn
mailing list