Closed rsc closed 2 years ago
If g is calling f, f should never read or write g's variables. But that's what Lookup was doing: reading g's variables instead of globals of the same name. Assignment was correct. This change factors out the lookup to share it between both.
Fixed comment.
Good catch.
If g is calling f, f should never read or write g's variables. But that's what Lookup was doing: reading g's variables instead of globals of the same name. Assignment was correct. This change factors out the lookup to share it between both.