3 ms·
Hello McCulley, sorry I missed your answer. > Does the current standard provide for automatic deallocation such that one need never instantiate Unchecked_Deall
by Raphael_Amiard 9y ago
Hello McCulley, sorry I missed your answer.
> Does the current standard provide for automatic deallocation such that one need never instantiate Unchecked_Deallocation?
The standard provide a host of containers and pointer-like constructs that would indeed allow you to never use Unchecked_Deallocation. There's one caveat: Performance.
> Without a garbage collector, who deallocates graphs of objects with circular references?
Like in other languages where you rely on ref-counting, you need to use weak references for that. This requires a bit more explicitness from the programmer.