3 ms·
It's perfectly compatible with GC. GC manages memory. RAII manages object lifetime. C++/CLI, for example, has full-fledged C++ RAII implemented on top of GC mem
by int_19h 6y ago
It's perfectly compatible with GC. GC manages memory. RAII manages object lifetime. C++/CLI, for example, has full-fledged C++ RAII implemented on top of GC memory management.
- ncmncm 6y agoFine, but having managed lifetime, it also manages memory, leaving nothing worthwhile for GC to do.