Dynamic Library Support for D
Benjamin Thaut
code at benjamin-thaut.de
Thu Jan 2 12:49:32 PST 2014
Am 02.01.2014 19:22, schrieb Jeroen Bollen:
> Currently D has a very poor support for creating and loading dynamic
> libraries. It requires a bunch of code while other languages like C just
> allow you to create it as you would create a static library.
>
> A problem here seems to be that D wants to integrate as much as possible
> with other languages, resulting in very poor support for integrating
> with it's own language.
>
> I understand that the problem here is that the libraries get saved as
> .so or .dll, which should also linkable with other, non-D, applications,
> meaning the runtime cannot initialize on it's own.
>
> Why isn't there a D-specific format for dynamic libraries, that just
> shares the garbage collector with the main application, and thus only
> allow you to link it with D programs, and that way make it way easier to
> write a dynamic library in D.
>
> I guess the only reason this doesn't exist is because it'll take a lot
> of work?
See http://wiki.dlang.org/DIP45
I've been pushing for propper DLL support for a while. But it has not
been important enough to be put on the roadmap yet. After the last thing
I heard DLL support (and therefor shared library support) will be put on
the roadmap of 2.066.
Kind Regards
Benjamin Thaut
More information about the Digitalmars-d
mailing list