4 ms·
Destructors are a powerful tool to ensure that required events occur, an important part of safety-critical coding. Static allocation is a valuable method that
by ncmncm 5y ago
Destructors are a powerful tool to ensure that required events occur, an important part of safety-critical coding.
Static allocation is a valuable method that is wholly compatible with use of destructors. If you imagine that freeing dynamically-allocated memory is the main use for destructors, you have utterly failed to understand them.
- _vvhw 5y agoIf I "have utterly failed to understand" destructors then I'll wear it gladly. :) I suppose we differ mostly not in our view of destructors, but in our approach to reducing dimensionality and how best to do that.