Interfacing via Java Native Interface
John Colvin
john.loughran.colvin at gmail.com
Wed Oct 16 04:08:09 PDT 2013
On Wednesday, 16 October 2013 at 11:01:33 UTC, Jacob Carlborg
wrote:
> On 2013-10-16 12:53, Andrew wrote:
>
>> Wow, thanks! Now everything works, proving that my guess on
>> uninitialized runtime was correct.
>> It's actually Runtime.initialize() according to documentation,
>> by the way.
>
> If you're calling it from C it might be more correct to call
> this function:
>
> https://github.com/D-Programming-Language/druntime/blob/master/src/rt/dmain2.d#L161
>
> It's what Runtime.initialize calls.
Agreed. You can't call Runtime.initialize from outside D due to
name mangling (and maybe ABI, depending on your system).
However, other than that it really makes no difference which you
call, Runtime.initialize is just a no-op wrapper around rt_init.
More information about the Digitalmars-d-learn
mailing list