Cpp Coding Standards/DESIGN/NoGlob
From Apache OpenOffice Wiki
< Cpp Coding Standards | DESIGN(Redirected from Cpp Coding Standards/Design/NoGlob)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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).