BinIO and TextIO refectored...

Stephen Weeks MLton@sourcelight.com
Tue, 19 Mar 2002 11:16:52 -0800


> I haven't been able to compile or even type-check the code properly
> yet. I don't remember how I can compile the basis-library with
> SML/NJ - which would be useful for typechecking it. Hint please? :)

bin/check-basis is a script that does the job.

> And when trying to do a complete MLton build I get the
> error:
> 
> unhandled exception: Fail unknown primitive: Posix_FileSys_O_text
>
> I added the text and binary primitives (I hope) - but maybe it's because
> I need to compile the runtime first in this new version of MLton?
> I can compile the stuff in runtime/ but how is the procedure to install
> it then before the complete compile? Hints?

_prim is no longer used for compile-time constants.  You should use
either _build_const or _const, depending on whether the constant is
defined on the build machine or the host machine.  In this case,
_const is the right thing.