Work Note 6, DM546, Spring 2018

Lecture February 20

Background material: program examples, Appel Chapter 6.

Exercises February 23

IMADA's Computer Lab has been reserved and is used for this exercise slot, so show up there.

As announced on the previous work note, this exercise session is a continuation of the one from last exercise session. Work on problems from that work note, get things actually running, implement variations to get hands-on experience with concepts you find unclear. Among other things, work on getting the example developed at the previous exercises on nested scope and static link running. You can also develop your own examples. For instance, a variation of the factorial example where you place the factorial function in an inner scope of another function, and have factorial modify a variable in its parent scope before returning a value.