dynamic scope

dynamic scope

(language)
In a dynamically scoped language, e.g. most versions of Lisp, an identifier can be referred to, not only in the block where it is declared, but also in any function or procedure called from within that block, even if the called procedure is declared outside the block.

This can be implemented as a simple stack of (identifier, value) pairs, accessed by searching down from the top of stack for the most recent instance of a given identifier.

The opposite is lexical scope. A common implementation of dynamic scope is shallow binding.
References in periodicals archive ?
So we gave him a dynamic scope last Monday, which is where they gallop with a scope up their nose.
The mode increases the dynamic scope by combining the data from separate exposures with extremely high contrast levels.
An important point in name control is whether static scope (also called lexical scope) or dynamic scope is used to locate names that are not local to a block or procedure.
Static scope binds names to declarations based on the static structure of the program; dynamic scope binds names to declarations at run-time.
Dynamic scope is used by languages such as C and Pascal.
With dynamic scope complete type checking cannot be performed until run-time.

Full browser ?