Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Ada and Object Pascal also have it.


Don'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).


C# using is Common Lisp's with-....




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: