Closed Z-snails closed 2 years ago
The syntax is:
ffi pure|effectful <os> "library"
eg
ffi pure linux "libc.so.6" darwin "libc.dylib" strcpy :: T_String -> T_String -> T_Unit
The interpreter also supports this and now does all ffi function loading at the start, rather than when the function is called.
thanks!
The syntax is:
eg
The interpreter also supports this and now does all ffi function loading at the start, rather than when the function is called.