lexical scope

Get Babylon's Translation Software! Free Download Now!
Babylon 8 - Your all-in-one solution
Award winning translation software trusted by millions. Translate from any language to any language.
View Demo



Wikipedia English The Free EncyclopediaDownload this dictionary
Scope (programming)
In computer programming, scope is an enclosing context where values and expressions are associated. Various programming languages have various types of scopes. The type of scope determines what kind of entities it can contain and how it affects them -- or semantics. Scopes can:contain declarations or definitions of identifiers;contain statements and/or expressions which define an executable algorithm or part thereof;nest or be nested.
See more at Wikipedia.org...

This article uses material from Wikipedia® and is licensed under the GNU Free Documentation License

FOLDOC DictionaryDownload this dictionary
lexical scope
<programming> (Or "static scope") In a lexically scoped language, 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. CPerl) or to whole function and procedure bodies (e.g. ?), or some larger unit of code (e.g. ?). The former is known as static nested scope.
(2001-09-07)


(c) Copyright 1993 by Denis Howe

Define lexical scope

Translate lexical scope





| lexical scope in French | lexical scope in Dutch | lexical scope in Japanese