D equivalent of run-time DLLs / Plugins
Chris Katko via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Feb 29 14:40:41 PST 2016
On Monday, 29 February 2016 at 22:12:37 UTC, jmh530 wrote:
> On Monday, 29 February 2016 at 19:02:27 UTC, Chris Katko wrote:
>> Hello. Dlang newbie here.
>>
>> Does D support run-time loading of D modules?
>>
>> Basically, I'm looking to create an application with a plugin
>> interface.
>>
>> I've seen a few posts, but they're dated and it's hard to keep
>> up with "What is the proper way to do X" when things change
>> rapidly. Last thing I want to do is retread ground when
>> someone else already has a more elegant solution.
>>
>> Also, are there any features to avoid that will cause
>> problems? I don't plan on needing anything too fancy.
>>
>> Thanks.
>
> Mike Parker's book covers the subject
> https://www.packtpub.com/application-development/learning-d
>
> That part of the book closely follows a series he wrote on
> gamedev (there's more than just that post)
> http://www.gamedev.net/page/resources/_/technical/game-programming/binding-d-to-c-r3122
I'm confused. Both posts appear to be for linking D to C++ DLLs.
I want to link to piece of D code at run-time. I want my D
program to load, scan for files which are whatever D-equivalent
of a DLL/SO is, and load those as well. Calling library
functions, and having them call my core functions.
More information about the Digitalmars-d-learn
mailing list