Self-referential struct mixins
Elie Morisse
syniurge at gmail.com
Mon Nov 18 16:45:29 UTC 2019
On Sunday, 17 November 2019 at 19:32:58 UTC, rbscott wrote:
> Thanks for pointing that out. Given what you understand about
> the issue, do you have any recommendations for working around
> this? I am pretty sure a string mixin will work, but hopefully
> there is an alternative. Maybe a different compiler will work?
DMD, GDC, LDC all share the same frontend so you'd get the same
errors.
As a workaround a single string mixin to generate the full body
of Structures would work yes. I can't think of other
alternatives..
More information about the Digitalmars-d
mailing list