Runtine Library Loading?

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun May 18 09:21:35 PDT 2008


"Andrew Wiley" <arew264 at gmail.com> wrote in message 
news:g0n82n$nsg$1 at digitalmars.com...
> One thing that would be very handy for a project I'm about to undertake 
> would be runtine libray loading. In C, I could use dlopen() and its 
> related functions to load a DLL and call functions in it. In C++, it 
> was... sketchy and I never really used it in much detail. Can D do this?
> This would be a linux only project, and from what I've read, this sort of 
> thing tends to work more on linux. I could stick to C functions if 
> necessary, but that would give little benefit from just using straight C.
> The structure of the project would just be an executable that would load 
> up libraries and call functions in them. All classes used in arguments 
> between libraries would be defined in the executable. The libraries would 
> follow a standardized interface.

If it's Linux-only, you've saved yourself a ton of trouble.  I've played 
around with SOs and D, and they seem to work great.  Classes, functions, 
exception handling etc. all seem to work fine when put in an SO. 





More information about the Digitalmars-d mailing list