December 2021
Beginner
840 pages
47h 29m
English
The Camille interpreter currently supports only pass-by-value because every time the interpreter encounters an operand, it creates a new reference. For instance, in the following Camille program, the assignment to passed argument x in the called function f does not affect the value of x in the outermost let expression:
The denoted value of a is a reference that initially contains a copy of the value with which the reference x is associated, but these references are distinct. Thus, the assignment to a in the body of the function f has no effect on the x in the outermost ...