in reply to Proper way to create 'globals'
Globals suck. Make a method which returns that data. Zing, now it's accessible to all subclasses, it's encapsulated behind a nice interface, and it's not stompable elsewhere by accident.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Proper way to create 'globals'
by Beechbone (Friar) on Feb 08, 2007 at 08:35 UTC | |
by chromatic (Archbishop) on Feb 08, 2007 at 20:16 UTC |