CS 3304: Comparative Languages
Subprograms
[
Course Documents
] : [
Subprograms
]
Previous
Contents
Next
Keyword Index
Pass-By-Result
out mode
Local's value is passed back to the caller
Physical move is usually used
Disadvantages:
If value is moved, time and space
In both cases, order dependence may be a problem
procedure sub1(y: int, z: int); ... sub1(x, x);
Value of x in the caller depends on order of assignments at the return