CS 3304: Comparative Languages
Subprograms
[
Course Documents
] : [
Subprograms
]
Previous
Contents
Next
Keyword Index
Design Considerations for Parameter Passing
Efficiency
One-way or two-way
These two are in conflict with one another!
Good programming => limited access to variables, which means one-way whenever possible
Efficiency => pass by reference is fastest way to pass structures of significant size
Also, functions should not allow reference parameters