4 ms·
No, RAII is a general technique with an object owning a resource, to limit it to those 2 things is just wrong. When using std::shared_ptr, cycles are rarely a p
by detrino 13y ago
No, RAII is a general technique with an object owning a resource, to limit it to those 2 things is just wrong. When using std::shared_ptr, cycles are rarely a problem. Also, I don't think MLton ever implemented anything relating to regions, perhaps you are thinking of ML Kit.
- srean 13y agoNot disagreeing, you missed the "typically". Well, I find manual memory management to be rarely a problem, but when it is ... EDIT: @detrino Ah! our typical sets are different then. How about "destructor dependent cleanup", call what we may, thats the underlying mechanism, but its too limiting.