Ownership semantics

Matt Elkins via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 31 12:11:07 PST 2016


On Sunday, 31 January 2016 at 20:10:03 UTC, Matt Elkins wrote:
> On Sunday, 31 January 2016 at 20:07:26 UTC, Steven 
> Schveighoffer wrote:
>> What is likely happening is that ptr is already collected, and 
>> you are invalidly attempting to re-free it.
>
> The GC can collect this memory even though there is still an 
> outstanding root-reachable pointer to it?

Or maybe it isn't root-reachable?


More information about the Digitalmars-d-learn mailing list