Assignment 8
Due 3/16/04 9:30 a.m.
(Must be done with your group)

  1. Page 423, Problem set # 1
  2. The static and dynamic links for an activation record may or may not point to the same activation record.
    1. Give an example where the static and dynamic links point to the same activation record.  Explain your example.
    2. Give an example when the static and dynamic links point to different activation records.  Explain your example.
  3. (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
    1. 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.
    2. Provide and discuss the evidence that supports your case.
    3. Discuss which one you prefer: deep or shallow binding.