Singletons importing each other?

Jack via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 25 03:52:11 PDT 2016


On Sunday, 24 July 2016 at 15:38:13 UTC, lqjglkqjsg wrote:
> On Sunday, 24 July 2016 at 15:07:20 UTC, Jack wrote:
>> [...]
>
> - You can use a 3rd module that imports the two that "cycle".
> - You can use another singleton implementation that doesn't 
> rely on a static this. e.g a kind of "lazy factory" that 
> control the uniquness.

Oh ok. Thanks for the ideas. Cheers!


More information about the Digitalmars-d-learn mailing list