C binding with D function

bachmeier via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 3 07:58:04 PDT 2016


On Wednesday, 3 August 2016 at 14:01:34 UTC, llaine wrote:
> On Wednesday, 3 August 2016 at 13:49:36 UTC, bachmeier wrote:
>
>> Probably because you need the D runtime. One way is to import 
>> core.runtime and call Runtime.initialize().
>
>
> Where should I call this Runtime.initialize() ?

Does the second answer to this question

http://stackoverflow.com/questions/676498/haskell-binding-with-ruby-through-ffi

help? It's Haskell, but I think the hs_init function call is 
equivalent to Runtime.initialize. I've never done this sort of 
thing with Ruby so I might be missing something.


More information about the Digitalmars-d-learn mailing list