Daniel
Results
23
comments of
Daniel
A closure will be released when out leave the scope using it, thus the referenced environment would be released. ```scm (lambda () ; env1 (define foo (lambda () ; env2...
I see it, seems a complete closure cannot be implemented without gc.
If consider unsafe closure, like in C++, this problem can be solved by some unsafe code representing *capture by reference*. As a interpreter using gc is the safest way. But...