Dynamic loading

Jacob Carlborg doob at me.com
Mon Oct 28 13:44:11 PDT 2013


On 2013-10-28 19:00, Steve Teale wrote:
> On Monday, 28 October 2013 at 17:49:23 UTC, Jacob Carlborg wrote:
>> On 2013-10-28 18:45, Steve Teale wrote:
>>
>>> Is there a description somewhere of how this will work? Is it language,
>>> Phobos, linker, or what.
>>
>> I guess it's compiler and runtime.
>
> That sounds a bit implausible. New language keyword or something to load
> a library or object file. My best guess is that extern(C) dlopen() will
> just work correctly, failing that I'd think we need an equivalent Phobos
> call.

It's not completely done yet but I think 
core.runtime.Runtime.loadLibrary will be the function used to load 
libraries. See: https://github.com/D-Programming-Language/druntime/pull/617

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list