3 ms·
I was under the impression that RAII specifically (as opposed to manually calling malloc and free by hand) was an innovation of C++, but I could be wrong.
by umanwizard 6y ago
I was under the impression that RAII specifically (as opposed to manually calling malloc and free by hand) was an innovation of C++, but I could be wrong.
- tjoff 6y agoDon't know, but the concept is very useful and has found its way into many languages, such as thr using statement in C#. It is just that it is typically more useful/powerful in languages that lack a GC (doesn't necessarily need to be that way though, but my impression).
- pjmlp 6y agoC# using is Common Lisp's with-....
- pjmlp 6y agoAda and Object Pascal also have it.