Pure dynamic casts?

Jarrett Billingsley jarrett.billingsley at gmail.com
Tue Sep 22 06:13:31 PDT 2009


On Tue, Sep 22, 2009 at 8:40 AM, bearophile <bearophileHUGS at lycos.com> wrote:
> Daniel Keep:
>>What if the GC just happens to re-use that address for a different object?<
>
> I don't understand. Can you explain me an example where this problem may happen?
>
> Bye,
> bearophile
>

Object is allocated at 0x10001000, that object is collected, its
memory is put back on the freelist, another object of the same size is
allocated, and that block of memory is used again, allocating a new
object at 0x10001000.



More information about the Digitalmars-d mailing list