Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
A variable that is visible by all code (as opposite of a local variable, which is only visible in its scope).
Avoid using global data [0] [1] .
[0] Herb Sutter , Andrei Alexandrescu . C++ coding standards: 101 rules, guidelines, and best practices. ISBN: 0-32-111358-6. Item 10: 'Minimize global and shared data'.
[1] Herb Sutter , Andrei Alexandrescu . C++ coding standards: 101 rules, guidelines, and best practices. ISBN: 0-32-111358-6. Item 18: 'Declare variables as locally as possible'.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.