Haskell calling D code through the FFI
Jon via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Aug 4 18:06:38 PDT 2014
As a note, I can interact with strings as expected, but working
with structs looks like it will take a little bit of work.
On Monday, 4 August 2014 at 22:17:36 UTC, Jon wrote:
> Yes, thank you. That is exactly what I did.
>
> On Monday, 4 August 2014 at 21:48:40 UTC, safety0ff wrote:
>> On Monday, 4 August 2014 at 21:35:21 UTC, Jon wrote:
>>> I get Error: core.runtime.rt_init is private. And Error:
>>> core.runtime.init is not accessible.
>>>
>>
>> I would add them to the header and Haskell wrapper
>> (FunctionsInD.h and ToD.hs.)
>> The signatures are:
>> int rt_init();
>> int rt_term();
>>
>> When it is linked it will find the symbols in druntime.
More information about the Digitalmars-d-learn
mailing list