Non-local variable: Difference between revisions

Content deleted Content added
Ruud Koot (talk | contribs)
synonyms
Ruud Koot (talk | contribs)
Undid revision 477074295 by Ruud Koot (talk)
Line 1:
In [[programming language theory]], a '''non-local variable''' (also '''free variable''' or '''upvalue''') is a variable that is not defined in the [[local scope]] (nor a [[function argument (computer science)|function argument]]). While the term can refer to global variables, it is primarily used in the context of [[nested function|nested]] and [[anonymous function]]s where some variables can be neither in the [[local scope|local]] nor the [[global scope]].
 
== Example ==