core.runtime: loadLibrary and unloadLibrary?

evilrat evilrat666 at gmail.com
Thu Jan 10 02:31:50 PST 2013


On Thursday, 10 January 2013 at 07:52:19 UTC, Jonathan M Davis 
wrote:
> 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

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


More information about the Digitalmars-d mailing list