Leave GC collection to the user of the D library?

IGotD- nise at nise.com
Sun May 9 14:10:48 UTC 2021


On Sunday, 9 May 2021 at 13:53:30 UTC, Vladimir Panteleev wrote:
>
> I don't think that would be enough. The garbage collector needs 
> to know of all threads running D code, so that it can scan 
> their stack and registers, so that it can know about objects 
> the pointer to which exists only in that thread's stack or 
> registers.

That's the unfortunate case with D in that case. The otherwise 
good FF interoperability of D is hampered by this. Then we are 
back to if GC pointers should be an own type or not. Time for the 
D3 fork.


More information about the Digitalmars-d mailing list