CPSC 425 Assignment 14
Call-By-Reference
Due Before Class on Wednesday, March 17th
Read section 4.5 of Essentials of Programming Languages and complete the following exercise:
- 4.36 (pg. 135)
- example usage : (run "let swap = proc (x) proc (y) let temp = x in begin set x = y; set y = temp end in let a = newarray(1,2) in begin ((swap arrayref(a, 0)) arrayref(a, 1)); -(arrayref(a, 0), arrayref(a, 1)) end") = #(struct:num-val 1)
Submission: Submit through the course blackboard site.