core.runtime: loadLibrary and unloadLibrary?

Martin Nowak code at dawg.eu
Thu Jan 10 15:57:06 PST 2013


Am 10.01.2013 11:42, schrieb Jonathan M Davis:
> On Thursday, January 10, 2013 11:31:50 evilrat wrote:
>> what's wrong with them? already used it on windows and mac, no
>> problems so far, though not tested too deep, and not with D
>> shared libs o_O
> 
> C shared libraries are fine. It's D shared libraries that are the problem. I 
> don't remember the details, but IIRC, among other things, you end up with 
> multiple copies of the GC running. The runtime needs a variety of non-trivial 
> tweaks to it order to fix those problems before shared D libraries become 
> viable.
> 
> - Jonathan M Davis
> 

Multiple GC copies are result from an ODR violation. We need a shared
phobos/druntime library to support other shared libraries.



More information about the Digitalmars-d mailing list