3 ms·
My last attempt at making reuseable Ada was with Ada95. Does the current standard provide for automatic deallocation such that one need never instantiate Unchec
by mcculley 9y ago
My last attempt at making reuseable Ada was with Ada95. Does the current standard provide for automatic deallocation such that one need never instantiate Unchecked_Deallocation? If so, I need to revisit it. Without a garbage collector, who deallocates graphs of objects with circular references?
- Raphael_Amiard 9y agoHello 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.