You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue with shared_ptr for environments: An environment can contain a callable which has a pointer to the enclosing environment. It must be shared because the closure has to own the environment. So when that environment goes out of scope, if it contains a function definition, it will not be deleted since the function definition also has a pointer to the environment. Neither can be weak pointers ! i think this requires a proper garbage collector
The text was updated successfully, but these errors were encountered:
Issue with
shared_ptr
for environments: An environment can contain a callable which has a pointer to the enclosing environment. It must be shared because the closure has to own the environment. So when that environment goes out of scope, if it contains a function definition, it will not be deleted since the function definition also has a pointer to the environment. Neither can be weak pointers ! i think this requires a proper garbage collectorThe text was updated successfully, but these errors were encountered: