Difference between revisions of "Variable"

From Valve Developer Community
Jump to: navigation, search
(spam revert)
m (Proper redirect test)
(20 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Variables]][[Category:Glossary]]A variable is a type of programmatic object that stores data. Many variables are primitives, such as [[Integer]]s, [[Real]]s, and [[Char]]acters.
#REDIRECT [[Wikipedia:Variable_(computer_science)]]
Each variable is temporarily stored in the user's RAM. Whenever the program is exited or is crashed the program's variables are cleared from the user's RAM.
Unfortunately problems with variables often cause memory leaks, which lead to the user's RAM filling up quickly, which in turn affects the entire system which must share this. Often times the user's system will become sluggish and the Page file will be called in, to write to instead of RAM (this is stored on the user's hard disk drive.)
It is important to clear any unused variables from memory as to help fight memory leaks.

Latest revision as of 18:44, 20 November 2012