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

Lexical scope

(Or “static scope”) When the scope of an identifier is fixed at compile time to some region in the source code containing the identifier’s declaration. This means that an identifier is only accessible within that region (including procedures declared within it).
This contrasts with dynamic scope where the scope depends on the nesting of procedure and function calls at run time.
Statically scoped languages differ as to whether the scope is limited to the smallest block (including begin/end blocks) containing the identifier’s declaration (e.g. C, Perl) or to whole function and procedure bodies (e.g. ECMAScript), or some larger unit of code (e.g. ?). The former is known as static nested scope.


Read Also:

  • Lexical order

    noun 1. the arrangement of a set of items in accordance with a recursive algorithm, such as the entries in a dictionary whose order depends on their first letter unless these are the same in which case it is the second which decides, and so on

  • Lexical scoping

    lexical scope

  • Lexical semantics

    noun the study of the meaning of words and phrases and the relationships between them, such as synonymy, antonymy, and hyponymy

  • Lexicog.

    1. . 2. . 3. . abbreviation 1. lexicographical 2. lexicography

Disclaimer: Lexical 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.