Local variable: Difference between revisions

Content deleted Content added
m fr:
mNo edit summary
Line 5:
A special type of local variable is available in some languages, such as [[Visual Basic#Visual Basic and VB.NET|Visual Basic.NET]] or [[C Sharp|C#]] which allows a value to be retained from one call of the function to another. The value is only lost when the object containing the variable is destroyed. In this case, recursive calls to the function also have access to the variable. One name for this type of variable is a ''static variable''.
 
Some programming paradigms and languages, such as [[functional programming]] (and its languages such as [[Haskell programming language|Haskell]]) require all variables to be of local scope, and the functionality of the program is achieved only by passing local variables from one function to another.
 
{{comp-stub}}