News for hackers. Stuff that matters.
Re:A Programming Idiom You've Never Heard Of by bunderbunder on Wednesday January 04, 2012 @10:58AM (#3424559)
If I understand the distinction you draw between deallocation and destruction correctly, then in .NET a well-designed object that does not maintain unmanaged resources is effectively destroyed the moment the last reference to it goes out of scope. After all, it's disappeared from the world, never to appear again.

All the garbage collector does is comes through later and deallocates the memory it consumed.

There are no comments on this comment yet.