News for hackers. Stuff that matters.
Re:C++ Versus Objective-C by vilya on Sunday December 11, 2011 @06:59PM (#3341564)
> Since creating an object requires specifically allocating it on the heap, having it destruct when the pointer leaves scope is no good.

It is actually possible for compilers to help out with this in many cases: http://en.wikipedia.org/wiki/Escape_analysis

There are no comments on this comment yet.