let x = 9 fun fy = if y>x then 99 else 4 fun g h = let x = 7 in h 12 end in let x 20 in g f 1. Fill in the missing infor
Posted: Tue May 24, 2022 7:42 am
let x = 9 fun fy = if y>x then 99 else 4 fun g h = let x = 7 in h 12 end in let x 20 in g f 1. Fill in the missing information in the following depiction of the run-time stack after the call to h 12 inside the body of g, assuming you have static scope. Activation Records Closures Compiled Code (1) static link () code for f X f (( ), ● g static link () (( ), • ) X g(f) static link () h code for g X (4) h(12) static link ( ) y 2. What is the value of this expression? Briefly explain your answer.