CS 3304: Comparative Languages
Implementing Subprograms
[
Course Documents
] : [
Implementing Subprograms
]
Previous
Contents
Next
Keyword Index
Subprograms as Parameters
For deep binding:
Static chain
Compiler simply passes the link to the static parent of the parameter, along with the parameter
Display
All pointers to static ancestors must be saved, because none are necessarily in the environment of the parameter
In many implementations, the whole display is saved for calls that pass subprogram parameters