Style/Structuring question: One vs. multiple global objects

BCS ao at pathlink.com
Mon Jul 2 10:17:58 PDT 2007


Reply to Henning,
[...]

If you don't want globals I'd uses static members (a fancy name for globals 
that are attached to something else ;) of the class that the data is most 
closely related to. This might not help with cyclical imports but it does 
cut out having a "god" object (and thus splitting things up and maybe helping 
the cycle thing).




More information about the Digitalmars-d-learn mailing list