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

Oh, so all my smart pointers I have written in Ada don't finalise when Finalize is called, by the runtime?


The example is about C++.


He was complaining of no destructors in Ada, when there are.


While asserting the reliability of RAII in C++, which only works out if you don't have devs that do stupid stuff like the example above.

You might consider that example stupid and argue no one would ever write code like that.

To which I would answer you haven't reviewed enough offshored C++ projects.




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

Search: