2 ms·
You could have a general-purpose "heap" interface that controls allocation. This would mean that you could control allocation space (for games this is really us
by nonsince 10y ago
You could have a general-purpose "heap" interface that controls allocation. This would mean that you could control allocation space (for games this is really useful), and tearing down the the heap would tear down its owned objects. You could either hand out weak pointers or statically tie the lifetime to the lifetime of the heap, like Rust does.