Question: Regarding the comment, this is the ML programming language. Plenty of questions on here have used the ML language. You should know what ML is
Regarding the comment, this is the ML programming language. Plenty of questions on here have used the ML language. You should know what ML is if you were an expert.
Consider the following ML function definition: fun fx- let fun hz - let fun rw = w*z in r(x+1) end fun gy-h(x+y) in gx end; Suppose that the expression f(3) is evaluated. Draw a picture of all the activation records that would exist when the multiplication takes place. Indicate which of the activation records is the current one at that point. In each activation record, show the variable names and values, the pointer to the previous activation record, and the nesting link. (Label the pointer to the previous activation record with P and the nesting link with NL.) Consider the following ML function definition: fun fx- let fun hz - let fun rw = w*z in r(x+1) end fun gy-h(x+y) in gx end; Suppose that the expression f(3) is evaluated. Draw a picture of all the activation records that would exist when the multiplication takes place. Indicate which of the activation records is the current one at that point. In each activation record, show the variable names and values, the pointer to the previous activation record, and the nesting link. (Label the pointer to the previous activation record with P and the nesting link with NL.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
