I am trying to write code that will compile on either mlton or mosml.
In my mosml I can exit on failure as follows.
Process.exit(Process.failure)
However when I try to reuse the same code and compile on mlton. It cannot find Process in its library set. Please let me know my options in terms of writing code that will work on either platform within one source code file.
The
Process
structure is a substructure ofOS
, so the following should work:See the Basis Library specification.