Creating and loading D plugins in D app

aberba via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 3 00:13:15 PDT 2017


On Friday, 2 June 2017 at 16:36:34 UTC, H. S. Teoh wrote:
> On Fri, Jun 02, 2017 at 12:19:48PM +0000, Adam D. Ruppe via 
> Digitalmars-d-learn wrote:
>> [...]
> [...]
>
> This is not directly related to the OP's question, but recently 
> I wrote a program that, given a user-specified string, 
> transforms it into D code using a code template, invokes dmd to 
> compile it into a shared object, loads the shared object using 
> dlopen(), and looks up the generated function with dlsym() to 
> obtain a function pointer that can be used for calling the 
> function. The shared object is unloaded after it's done.
>
> [...]
Blog on it?


More information about the Digitalmars-d-learn mailing list