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.

Reply via email to