Scope Rules



next up previous contents index
Next: Variables and Declarations Up: ScopesDeclarations, and Previous: External Names

Scope Rules

The scope rules are:
  1. An identifier may not be defined twice in a scope. Note that this rule implies that an identifier defined in a scope may not be redefined in a nested scope.

  2. Within a single program unit (1.7), an identifier may not appear as an external name in one scope and as a scoped identifier in another scope.



theta-questions@lcs.mit.edu