mixin template's alias parameter ... ignored ?
someone
someone at somewhere.com
Mon Jul 12 00:54:24 UTC 2021
On Sunday, 11 July 2021 at 13:14:23 UTC, Steven Schveighoffer
wrote:
> when I've done this kind of stuff, what I usually do is:
>
> ```d
> struct Thing {
> ... // actual struct
> }
>
> mixin("alias ", lstrStructureID, " = Thing;");
> ```
>
> the downside is that the actual struct name symbol will be
> `Thing`, or whatever you called it. But at least you are not
> writing lots of code using mixins.
>
> -Steve
Thanks for your tip Steve, I ended with something similar, I'll
be posting my whole example below.
More information about the Digitalmars-d-learn
mailing list