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

> it's just that it's really obvious if you know anything at all about how the stack works (and C++ destructors).

Which does not change it being an elegant solution to the problem of resource scoping does it?

Also the semantics of C++ destructor (and their relation to stack deallocation) had to be defined to get RAII, and it was, back in the very early 80s when the idea of resource scoping was not exactly well known.



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

Search: