[MLton] Documentation on _export

Jens Axel Søgaard jensaxel@soegaard.net
Fri, 23 Sep 2005 00:10:51 +0200


In the process of writing documentation on the mzscheme<->mlton FFI,
I came across:

   Export

   _export "C function name" attr... : cFuncTy -> unit;

   Denotes a function that must be applied to a SML function f and
   arranges for the exported C function to call the SML function.

at <http://mlton.org/ForeignFunctionInterfaceSyntax>.

This suggests that the export happens when the denoted function
is called, in order words that the export happends at runtime.
That can't be right? What would an improved wording look like?

-- 
Jens Axel Søgaard