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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 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 a
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!