core.runtime: loadLibrary and unloadLibrary?

Jonathan M Davis jmdavisProg at gmx.com
Wed Jan 9 23:51:22 PST 2013


On Thursday, January 10, 2013 08:35:53 Rob T wrote:
> http://dlang.org/phobos/core_runtime.html#.Runtime.loadLibrary
> 
> I want to load shared libraries during runtime as plug-in's, but
> the consensus seemed to indicate that DMD is not yet ready for
> this. I wonder if these functions provide any useful plug-in
> support or not?

I don't know what the state of those functions is, but the GC can't handle 
shared libraries at this point. I believe that that's the main reason why 
shared libraries are a no-go at this point. And with a problem like that, it 
seems to me like a _really_ bad idea to try and use them. If I were you, I'd 
keep away from them until druntime was fixed to properly support them. That's 
certainly what I intend to do.

- Jonathan M Davis


More information about the Digitalmars-d mailing list