Dictionary: A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z

Dynamic scope

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.


Read Also:

  • Dynamics analyzer

    language (DYANA) An early language specialised for vibrational and other dynamic physical systems. [Sammet 1969, p. 628]. (1997-07-20)

  • Dynamic refraction

    dynamic refraction n. Refraction of the eye during accommodation.

  • Dynamic link

    compiler A pointer from an activation record to the activation record for the scope from which the current scope was called at run time. This is used in a statically scoped language to restore the environment pointer on exit from a scope. To access a non-local variable in a dynamically scoped language, dynamic links are […]

  • Dynamic language

    language (Dylan) A simple object-oriented Lisp dialect, most closely resembling CLOS and Scheme, developed by Advanced Technology Group East at Apple Computer. Thomas is a Dylan compiler implemented in Scheme. See also Marlais. [“Dylan(TM) an Object-Oriented Dynamic Language”, Apple Computer, Eastern Research and Technology, April 1992]. (1995-04-19)

Disclaimer: Dynamic scope definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.