Non-local variable

In programming language theory, a non-local variable is a variable that is not defined in the local scope. While the term can refer to global variables, it is primarily used in the context of nested and anonymous functions where some variables can be in neither the local nor the global scope. In Lua they are called the upvalues of the function.

Comment
enIn programming language theory, a non-local variable is a variable that is not defined in the local scope. While the term can refer to global variables, it is primarily used in the context of nested and anonymous functions where some variables can be in neither the local nor the global scope. In Lua they are called the upvalues of the function.
Has abstract
enIn programming language theory, a non-local variable is a variable that is not defined in the local scope. While the term can refer to global variables, it is primarily used in the context of nested and anonymous functions where some variables can be in neither the local nor the global scope. In Lua they are called the upvalues of the function.
Hypernym
Variable
Is primary topic of
Non-local variable
Label
enNon-local variable
Link from a Wikipage to another Wikipage
Access link
Activation record
Anonymous function
Call stack
Category:Programming language theory
Category:Variable (computer science)
Closure (computer science)
Compiler
Compilers: Principles, Techniques, & Tools
Display register
First-class function
Frame pointer
Global scope
Global variable
Higher-order function
Local scope
Lua (programming language)
Nested function
Programming language theory
Recursion (computer science)
Scope (computer science)
SameAs
4sp8T
Biến phi cục bộ
m.0h67x6v
Neloka variablo
Q7048954
SeeAlso
Nested function
Subject
Category:Programming language theory
Category:Variable (computer science)
WasDerivedFrom
Non-local variable?oldid=1087359297&ns=0
WikiPageLength
4001
Wikipage page ID
33103837
Wikipage revision ID
1087359297
WikiPageUsesTemplate
Template:Reflist
Template:See also
Template:Short description