3 ms·
The destructor is the distinguishing feature of RAII. Lots of languages have constructors without RAII because they do not have deterministic destructors. Examp
by svvayy 4y ago
The destructor is the distinguishing feature of RAII. Lots of languages have constructors without RAII because they do not have deterministic destructors. Examples are Python and Java.
Can you expound on what your understanding is?
- moloch-hai 4y agoThe destructor is what distinguishes C++ from everything before and all but Rust even after, but is, as already explained above, just one part. No exceptions, no RAII.