www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DLL supposed to work as specified at http://dlang.org/dll.html?

reply "deed" <none none.none> writes:
I'm running into several issues, so first, is this supposed to 
work correctly? I'm looking into D code DLLs called by D code.
Feb 18 2013
parent reply Benjamin Thaut <code benjamin-thaut.de> writes:
Am 19.02.2013 00:27, schrieb deed:
 I'm running into several issues, so first, is this supposed to work
 correctly? I'm looking into D code DLLs called by D code.
D code DLLs called by D code are heavly broken. Don't expect it to work.
Feb 19 2013
parent reply "deed" <none none.none> writes:
 D code DLLs called by D code are heavly broken. Don't expect it 
 to work.
Any solid workarounds?
Feb 19 2013
parent Lee Braiden <leebraid gmail.com> writes:
On Tue, 19 Feb 2013 22:41:04 +0100, deed wrote:

 D code DLLs called by D code are heavly broken. Don't expect it to
 work.
Any solid workarounds?
I don't really know the issues with this, but I do know that Walter was just saying in his latest talk that fixing this particular issue will be the focus for the next release. For now, I guess it MIGHT work if you declare your interfaces as extern "C", and then just treat it as a normal C library in terms of linking and using it. -- Lee
Feb 23 2013