GC does not delete subclass
Sean Kelly
sean at f4.ca
Mon Dec 17 14:46:30 PST 2007
Jason House wrote:
> Matthias Thurau Wrote:
>
>> When i put the "scope" into the func(), then i get the output from above again.
>
>
> It looks like a bug to me. Does this happen with Phobos or Tango? (or both?) I know they use different gc's.
I've noticed that the most recent object to be constructed is often not
deleted in simple test cases. My guess is that a reference to this
address is probably still lingering in a register somewhere, so the GC
thinks it's still alive. This happens in Phobos and Tango.
Sean
More information about the Digitalmars-d
mailing list