by jasonthorsness · 1y ago · 0 comments
This is difficult though in higher-level languages. Go tried and failed with arenas.
Has some shortcomings, but I think it should work.
Start of scope mark the allocators state. defer when it goes out of scope you release everything. Cheezy would be the release function takes a list of objects to keep.
Hmmm... ;)