Nonlocal variable (source code)

= Nonlocal variable

A variable used within a procedure but declared outside it. Under <lexical scope>, its binding is determined by enclosing declarations and the associated runtime environment, often accessed through a <static chain> or <programming closure>.