Leave GC collection to the user of the D library?
Daniel N
no at public.email
Sun May 9 08:09:30 UTC 2021
On Sunday, 9 May 2021 at 03:25:06 UTC, Ali Çehreli wrote:
> tl;dr I am scared of non-D programs calling my D library
> functions from foreign threads. So, I am planning on asking the
> user to trigger collection themselves by calling a collection
> function of my library. Crazy?
>
Since this is a "thin" library, feels like the sane solution is
to make it 100% nogc and keep the GC only in the server.
But might not be possible if the design of those other libraries
are all-in on GC
"this library itself loads other D libraries"
More information about the Digitalmars-d
mailing list