CS 3304: Comparative Languages
Implementing Subprograms
[
Course Documents
] : [
Implementing Subprograms
]
Previous
Contents
Next
Keyword Index
Static Depth and Chain Offset
The
chain_offset
or
nesting_depth
of a nonlocal reference is the difference between the static_depth of the reference and that of the scope where it is declared
A reference can be represented by the pair:
(chain_offset, local_offset)