stansbuj wrote
Sys.vm pushes 6 and 8 onto the stack, and then calls Class1.set to push those two onto static[0] and static[1]. Sys.vm then pushes 23 and 15 onto the stack and then calls Class2.set to push those two onto static[0] and static[1]. But doesn't that override what Class1.set pushed into those two static locations?
Jack
The point of this test is that
static n in Class1 must use a different symbol name than
static n in Class2 so that they don't get overwritten.
See figure 8.6, 3rd entry: "Xxx.j".
--Mark