| URL: | Blog - Explain lexical scope in plain English |
|---|
| Name | Description |
|---|---|
Block Lexical Scope | A Block Lexical Scope is a Block Collection that is also a Lexical Scope for the Building Blocks it groups. A Block Lexical Scope defines the existence of its grouped Building Blocks through nesting. |
Container | A Container is a collection of Building Blocks whose existence and meaning are defined by the Container. A Container is both: 1. A Lexical Scope: the meaning and usage of a Building Block is only applicable within the context of the Container to which it belongs. 2. A universe of discourse: the complete range of Building Blocks that are expressed, assumed, or implied in an architecture domain. Examples: - Library - Enterprise |
Lexical Scope | A Lexical Scope is a kind of Aspect of Entity that defines the existence, visibility, and accessibility of the entities nested within it through a Nesting Relation. Nested Entitys have no independent identity or validity outside the lexical or structural scope in which they are defined - they exist only within and for the duration of their parent construct. Every Entity belongs to exactly one Lexical Scope. A Lexical Scope carries no intrinsic semantic meaning; it serves purely as a syntactic mechanism for establishing scope through hierarchical containment. Examples: 1) Composite structures (Aggregate Block) nesting their internal constituents (Aggregate Member). 2) Social structures nesting their roles and functions. 3) Computer functions nesting their local variables or inner functions. 4) Packages nesting their Building Blocks (packaging). |