Hacker News new | ask | show | jobs
by DaiPlusPlus 2422 days ago
How would you manage scoped lifetimes and transient objects using the Env/Context pattern?
1 comments

I creatd a minimal framework in C++ in mid '90s around the concept of Contextual Objects. Child contexts can be used to affect life-cycle scopes. In this approach, the virtual construct of a 'containment context' allows for managed life-cycles, at an aggregate level. Delete the context and all child objects (recursively) are deleted as well.