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

You don't need to use delete explicitly to control the lifetime of objects in C++. A properly placed "}" or a call to something like .release() can be just as effective. The problem is, there is simply no way to do it in a GC language.


I think you completely misunderstood what I wrote. I was asking the person I replied to why they needed to use new and delete.




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

Search: