- 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 1 (104.42 KiB) Viewed 13 times
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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 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 infor
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.