Hi folks,
I've seen the ForeignTest.{c,sml} example of passing callbacks to C functions using Poly/ML's C FFI (ie, via things like the FUNCTION2 conversion). Is there a way to do this without calling C from Poly/ML?
Asked another way, is there a straightforward way to start the Poly/ML runtime from a C main() function, and then call Poly/ML functions (perhaps only those which have been registered via some kind of callback registration mechanism) from C?
If it's possible, pointers to documentation and/or example code would be immensely appreciated.
Thanks, Joel