Assignment 8
Due 3/16/04 9:30 a.m.
(Must be done with your group)
- Page 423, Problem set # 1
- The static and dynamic links for an activation record may or may not point
to the same activation record.
- Give an example where the static and dynamic links point to the same
activation record. Explain your example.
- Give an example when the static and dynamic links point to different
activation records. Explain your example.
- (NOTE: Due to enhancements to the PL-Detective, the link below will not be
available until the after class on the 9th of March)
In this question you will use
this link to
determine if MYSTERY uses deep
or shallow binding for procedures that are passed as parameters. For the
purpose of this question assume that the actual's type and the corresponding
formal's type must be the same, using structural type equality
- Determine and describe whether
mystery uses deep or shallow binding for passed procedures. Your
submission may execute up to 4 PRINTs. Each additional PRINT will be
charged 5% of the points for the question.
- Provide and discuss the evidence that supports your case.
- Discuss which one you prefer: deep or shallow binding.