Can't access enum from a different module when it was generated by a string mixin.

realhet real_het at hotmail.com
Mon Mar 31 17:21:03 UTC 2025


On Monday, 31 March 2025 at 14:59:21 UTC, FeepingCreature wrote:
> On Monday, 31 March 2025 at 13:24:11 UTC, realhet wrote:
> Can you give a repro? It works here.

Ok, I tried and gave up, it's too big.

But I've found what is triggering it.  The problem roots in 
circular module imports, and this mixin(enum) thing is just a 
symptom.  So it was a false alarm from me, please ignore.

[](https://ibb.co/1GXKvfQz)
I have no clue, how to turn this into a clean tree with no 
circular references...

Until that I will put these mixed in enums into a struct.  That's 
something like an atomic unit, not like the surface of a module 
which is optionally and lazily evaluated by many compiler passes 
I don't have much knowledge of.





More information about the Digitalmars-d-learn mailing list