Question: Evaluate an expression of the form FunCall ( e , [ e 1 , . . . , ek ] ) where e is the

Evaluate an expression of the form FunCall(e,[e1,...,ek]) where e is the expr for the called function, and e1,..., ek are exprs for the arguments of this call. There are arguments.
(A) Evaluating e must yield a closure of the form
.
(B) The number of arguments for the closure
must equal that of the function call
.
(C) Evaluating each of the
arguments ei for must yield where
is not error.
(D) Then the result of evaluating the call is the same as that of evaluating fBody under the environment
extended by mapping the formal parameters id1.., idk to , respectively.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!