On 21 February 2012 19:10, Alex Rønne Petersen <xtzgzorex@gmail.com> wrote:
On 21-02-2012 18:03, Manu wrote:
Interesting point.
Java (or any VM based language) can't hard link to the binary, so it
never could try and call back in through an extern-ed function directly,
Sure it could. Why wouldn't it be able to? This is how extern + DllImport works in C#.
But that only works because C# has DLL support, which knows about the C calling convention, so you just need to export an extern(C) in that case, like any regular DLL.