named arguments, string interpolation, please stop.

Guillaume Piolat first.name at gmail.com
Thu Jan 11 14:03:16 UTC 2024


Disagree on that one:

On Thursday, 11 January 2024 at 13:07:52 UTC, deadalnix wrote:
>  - D runtime is unable to see thread started manually (for 
> instance with pthread-create) leading to all kind of bizarre 
> behavior.

Well this is working as intended and needed here in shared libs. 
Registering and deregistering threads endlessly in shared 
libraries cost time. druntime cannot be used in full everywhere 
so at least provide escape hatch. Either use Thread or register 
your thread to the druntime. The common misconception is that you 
could just register threads once in a shared library but in 
reality when the threads dies elsewhere the GC will scan memory 
that doesn't exist anymore.



More information about the Digitalmars-d mailing list