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.
Thanks for advice, I'll use it when I'm interfacing C with D :-)
For now I can't use it directly because a native function called
from java requires a name with "Java_" prefix, so I'd have to
write a wrapper with such prefix anyway.