what to do with postblit on the heap?

Jose Armando Garcia jsancio at gmail.com
Mon Jun 20 11:55:02 PDT 2011


On Mon, Jun 20, 2011 at 11:34 AM, Steven Schveighoffer
<schveiguy at yahoo.com> 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


More information about the Digitalmars-d mailing list