newbie: Circular references across modules

Larry Luther larry.luther at dolby.com
Thu Apr 29 19:04:58 PDT 2010


This code describes the concept:

module a;
import B;

struct A { B *ptr; }

---------------------

module b;
import A;

struct B { A *ptr; }

-----------------------------

Can this be done?
Do both classes have to be in the same module?





More information about the Digitalmars-d-learn mailing list