-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels