Encyclopedia > Scope

  Article Content

Scope

The scope of a given activity or subject is the area or range of what it covers.

In computer programming, the scope of a variable refers to where and when in the program that variable can be accessed and/or modified. It is considered good programming practice to make variables as narrow a scope as feasible so that different parts of your program do not accidentally interact with each other by modifying each other's variables. Common techniques for doing so are to have different sections of your program use different namespaces[?], or else make individual variables private through either dynamic variable scoping or lexical variable scoping.

Also the term used in firearms for a telescopic sight.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Northwest Harbor, New York

... The average household size is 2.59 and the average family size is 3.04. In the town the population is spread out with 25.2% under the age of 18, 4.8% from 18 to 24, 27.3% ...

 
 
 
This page was created in 26.9 ms