How does compiling circular dependencies work?
- by Fabio F.
I've made the example in Java but I think (not tested) that it works in other (all?) languages.
You have 2 files. First, M.java:
public class MType {
XType x;
MType() {x = null;}
}
Second, another file (in the same directory), XType.java:
public class XType {
MType m;
public XType(MType m) {this.m = m;}
}
Ok it's bad…