On 2014-10-30 10:23, John Colvin wrote:
Slightly derailing the conversation, but I see this all the time...
Isn't the situation actually this:
GC allocated objects are not guaranteed to be de-allocated before
program termination.
If a GC allocated object is deallocated, its destructor *is* guaranteed
to be called.
Except:
Destructors are not called for arrays of objects, whether they are
structs or emplaced classes, even when they are de-allocated.
Yes, that's the longer explanation :)
--
/Jacob Carlborg