Cpp Coding Standards/DESIGN/NoGlob

From Apache OpenOffice Wiki
< Cpp Coding Standards‎ | DESIGN
Revision as of 17:08, 14 December 2009 by B michaelsen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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).

Personal tools