Difference between revisions of "Cpp Coding Standards/DESIGN/NoGlob"
From Apache OpenOffice Wiki
m |
m (Cpp Coding Standards/Design/NoGlob moved to Cpp Coding Standards/DESIGN/NoGlob: simplicity) |
(No difference)
|
Revision as of 11:07, 13 April 2007
Global variables introduce global state, which makes testing and understanding your program unnecessarily hard. Furhermore, they pollute their context with their names, and they can't always be sensibly initialized (see DESIGN:GlobInit).