CS 3304: Comparative Languages
Subprograms
[
Course Documents
] : [
Subprograms
]
Course Documents
Next
Keyword Index
Subprograms
Handout:
PDF File
(13pp., 562K)
Outline
Definition of Terms
Characteristics of Subprograms
Basic Definitions
More Definitions
Parameter
Actual/Formal Param Correspondence
Default Parameter Values
Two Types of Subprograms
Design Issues for Subprograms
Local Referencing Environments
Local Variables in Example PLs
Parameters and Parameter Passing
Pass-By-Value
Pass-By-Result
Pass-By-Value-Result
Pass-By-Reference
Pass-By-Name
Pass-By-Name Example 1
Pass-By-Name Example 2
Disadvantages of Pas-By-Name
Param Passing: Language Examples
Param Passing: PL Examples (cont.)
Type Checking Parameters
Implementing Parameter Passing
Ada Param Passing Implementations
Multidimensional Arrays as Params
More Array Passing Designs
Design Considerations for Parameter Passing
Subprograms As Parameters: Issues
Subprogs as Params: Issues (cont.)
Overloading
Generic Subprograms
Independent and Separate Comp.
Language Examples: Indep./Sep. Compilation
Functions
Accessing Nonlocal Environments
Methods for Accessing Nonlocals
User-Defined Overloaded Operators
Coroutines