Dynamic Libaries in D
BLS
nanali at nospam-wanadoo.fr
Sun Oct 12 11:49:50 PDT 2008
Lars Ivar Igesund schrieb:
> BLS wrote:
>
>> Lars Ivar Igesund schrieb:
>>> Tim M wrote:
>>>
>>>> Can someone help me with dynamic libraries in d. I've seen this
>>>> http://www.digitalmars.com/d/2.0/dll.html as an example of windows dll
>>>> and a similar example of using tango here
>>>> http://dsource.org/projects/tango/wiki/TutDLL but both say multiple
>>>> threads not supported. How can I make a dll in d that supports multi
>>>> threads.
>>>>
>>>> I would also like to make linux modules so how can I do the
>>>> initialization and finalization for those or can the compiler do it for
>>>> me without coding it?
>>> Unless you really need DLL's, and not only dynamic libraries - look into
>>> DDL.
>>>
>>> http://www.dsource.org/projects/ddl
>>>
>> I can't agree with Lars "Snowman" Igesund. DDL is not ready for
>> production use. (Especially related to ix based systems)
>
> He was clearly talking about Windows dll's, and they will _never_ be
> production ready in D, whereas DDL is. In this particular case, it seems
> that *nix performance is irrelevant.
>
Hi Lars,
Quote Tim M.
I would also like to make linux modules so how can I do the
initialization and finalization for those ...
End Quote.
However, I use D DLLs by using the extern windows interface and the
current behaviour is almost okay for me. But in case that I need extern
D {} in order to create plugins for my D application .... you know.
Borland's C++ compiler has support for that kind of shared libraries, so
it is reasonable to ask : Why D has not.
Kind regards, bjoen
PS: will _never_ be production ready.. Why ?
More information about the Digitalmars-d-learn
mailing list