dynamic scope
dynamic scope
(language)This can be implemented as a simple stack of (identifier,value) pairs, accessed by searching down from the top of stackfor the most recent instance of a given identifier.
The opposite is lexical scope. A common implementation ofdynamic scope is shallow binding.