[MLton-user] SVN r6941 MLton/MinGW32 and FFI

Wesley W. Terpstra wesley at terpstra.ca
Tue Nov 11 07:28:32 PST 2008


On Tue, Nov 11, 2008 at 3:41 PM, Dan DuVarney
<duvarney at reactive-systems.com> wrote:
> It looks like the default scope is "external." When I added
> "public" scopes to import.sml (see below), I was able to get "import" to
> compile and run. Someone might want to check to see if this is a problem
> on other OSes, as I don't have access to a linux machine.

It will work there too. external=public on linux.

> One question occurs to me. Is there a compiler option to change the
> default scope of foreign functions and data? That could also be used to
> get this example to work.

There is no compiler switch. As a program might import both public and
external symbols, changing the default for the entire program might
not work as expected.



More information about the MLton-user mailing list