If you attend class on
9/22,
you will have a chance to do this
assignment in-class for the
C14 grade
Consider the following Levi program:
a : int; v : () void { a = a + 1; out << a; } w : () -> void { a = 7; v(); out << a; } main : () -> void { a : int; w(); out << 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?