|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
v |
The
“Fluency” book uses a different way of explaining
|
|
parameter
passing (as assignment statements into
|
|
|
the
formal parameters).
|
|
|
v |
For
straightforward programs, this always gives the
|
|
|
same
results as pass by reference.
|
|
|
v |
However,
for some messy cases it gives different
|
|
|
results.
|
|
|
|
o |
Ugh! We’re never going to give you such
programs in
|
|
|
CSE/IMT
100 (in homework or quizzes).
|
|
|
|
o |
If
you go on to further study of programming, however, you
|
|
|
will
probably run into this.
|
|
|
|
o |
The
way described in the lecture is how it’s actually done.
|
|