Hi,
I implemented a simple binding/wrapper for libffi in D a while back[1].
We have successfully used this to implement native function invocation
in MCI's IR interpreter. I'm wondering if there is any interest in
making this a standard module in Phobos (std.ffi or so). If so, I'm
willing to put in some effort to sanitize and properly document the API.
This means that we will be depending on libffi. I don't know how people
feel about this. FWIW, the library is available on virtually any POSIX
system (including OS X). Only Windows doesn't have it.
[1] https://github.com/lycus/libffi-d
--
- Alex