For each of the following ML functions, could the activation record for the function be deallocated as
Fantastic news! We've Found the answer you've been seeking!
Question:
For each of the following ML functions, could the activation record for the
function be deallocated as soon as the function returns? Explain why or why not.
a. fun f x = x + 1
b. fun f x = fn y => x + y
c. fun f x = fn y => y + 1
d. fun f x = map ~ x
Related Book For
Calculus For Business, Economics And The Social And Life Sciences
ISBN: 9780073532387
11th Brief Edition
Authors: Laurence Hoffmann, Gerald Bradley, David Sobecki, Michael Price
Posted Date: