let x = 2 in let f fn z => x + z in let x= 100 in (f x) Draw the run-time stack after the call to f x, just before you a
Posted: Tue May 24, 2022 7:42 am
let x = 2 in let f fn z => x + z in let x= 100 in (f x) Draw the run-time stack after the call to f x, just before you are returning to the caller. Draw both the dynamic (or control) link and the access (or static) link. What is the result in static scope? Explain how you obtain your result following the run-time stack. What is the result in dynamic scope. Explain how you obtain your result following the run-time stack.