On Mon, Jun 20, 2011 at 11:34 AM, Steven Schveighoffer <[email protected]> wrote: > But when the data is on the heap, the destructor is *not* called. So what > happens to any ref-counted data that is on the heap? It's never > decremented. Currently though, it might still work, because postblit isn't > called when the data is on the heap! So no increment, no decrement.
What? That makes it impossible/difficult to do RAII and invalidates my strong/weak ref counting design for sockets and selector. Is there a technical reason why the GC is not calling dtor? or is this because we haven't gotten around implementing this? Thanks, -Jose
