Re:For Better Computing, Liberate CPUs from Garbage Collection
by kazinator on Thursday May 09, 2019 @03:47PM
(#19871626)
RAII is commonly used for representing smart pointers that manage references to objects that themselves have otherwise pervasive lifetimes.
RAII not managing any shared resources is trivial and uninteresting. The lifecycle of an object that is confined to a single lexical scope can be handled manually and verified by visual inspection (though of course it is more reliable to automate that with RAII or macros, not to mention less verbose).
RAII not managing any shared resources is trivial and uninteresting. The lifecycle of an object that is confined to a single lexical scope can be handled manually and verified by visual inspection (though of course it is more reliable to automate that with RAII or macros, not to mention less verbose).