Closed jeandrek closed 8 years ago
Oh, I guess by fixing this I'm also making lexically scoped nested procedures.
Oh, I guess by fixing this I'm also making lexically scoped nested procedures.
Wait, no, I'm not, the compiler may accept something like
(proc foo ()
(var x 0)
(proc bar ()
(printf "%d\n" x))
(bar))
(foo)
but it'll segfault or print nonsense values and bar isn't local to foo anyway in the sense that you could put a call to bar anywhere.
won't work because i is not defined in foo's environment. Environments should be a list of frames