If you attend class on
9/30,
you will have a chance to do this
assignment in-class for the
C14 grade
Consider the following A program:
a : int;
v : () -> void {
a = a + 1;
toconsole a;
}
w : () -> void {
a = 7;
v();
toconsole a;
}
main : () -> void {
a : int;
w();
toconsole a;
}
Does this program compile in a static scoping scheme? In a dynamic scoping scheme? What is the output for each scheme in which it compiles?