I never experienced what you described Lilith. Hmm.. Maybe I have and didn't realize it. I personally often have references to a class or other classes in a class.. but they are really insttiations... its either short hand - or a way of accessing things OUTSIDE the class... Like One class uses a reference to one of its comrades.
MainClass{
LittleClassModule
AnotherLittleClassModule
}
Example:
MainClass(){ //constructor
LittleClassModule = new LITTLECLASSMODULE(this);
AnotherLittleClassModule = ANOTHERLITTLECLASSMODULE(this);
};
Each of those little classes now has a reference to the MAINCLASS ... and I can make some cool modular code like this.
Categorized... yet - able to jump out the category "Box" if necessary. Some caution is required - in you have to know when its SAFE to do that trick...
Like... the First LittleClass Should NOT try to Access the ANotherLittleClass (the way the above example is written) UNTIL the "anotherlittleclass" is instantiated. (otherwise you are asking for it
)