Defining classes with cyclic dependencies

Per Nordlöw per.nordlow at gmail.com
Sun Mar 17 20:38:16 UTC 2024


I was surprised that the compiler cannot compile

```d
class A { B b; }
class B { C c; }
class C { D d; }
class D { A a; }
```

. Shouldn't it?


More information about the Digitalmars-d-learn mailing list