Exercise "6.1.x":
Using diagrams as in Figure 6.1.6, page 185, trace the program in
Figure 6.2.3, page 193, using call-by-value with indirect arrays and
with direct arrays. What sequence of four values is printed in each
case?
Exercise 6.2.2.
In doing this exercise, use the following corrected version of
Figure 6.2.2(b) as your model, not the original,
and for each case specify what sequence of four values (not one value) is
printed.
Exercise "6.3.x":
What value would the following expression compute using
call-by-reference? What value using call-by-value-result? Explain,
using diagrams to help.
let y = 3 in
let p = proc(x) begin
y := 5;
x := +(x, 1)
end
in begin
p(y);
y
end
Exercise 6.5.5.
Include both what is explicitly printed by write and what
is implicitly printed by the read-eval-print loop (the overall
expression's value).