News for hackers. Stuff that matters.
Re:A Programming Idiom You've Never Heard Of by ansgri on Wednesday January 04, 2012 @12:49AM (#3422984)
Normally, the deallocation of the destroyed object has no visible effect, and you're not expected to do anything with object after it's destroyed.

So, in case of C++, object is destroyed when goes out of scope, but the physical act of deallocation may be deferred by the standard library as whatever 'smart memory manager' wishes.

There are no comments on this comment yet.