[MLton-user] FFI questions

Florian Weimer fw@deneb.enyo.de
Sun, 24 Jul 2005 20:42:04 +0200


Are there MLton types matching long and size_t?  Currently, it seems
that MLton is 32-bit only, but this might change in the future.  So
using Int32 and Word32 seems unwise.

I'm interfacing a library which stores pointers to char arrays, and
it's the task of the application to ensure that the arrays are not
freed while the library is still using them.  Is there an easy way to
prevent MLton from freeing a string?  Or should I use malloc and
memcpy, and manage memory by hand?