11 val callcc: ('a cont -> 'a) -> 'a
12 val isolate: ('a -> unit) -> 'a cont
13 val throw: 'a cont -> 'a -> 'b
18 datatype os_kind = BEOS | MACOS | OS2 | UNIX | WIN32
20 val getHostArch: unit -> string
21 val getOSKind: unit -> os_kind
22 val getOSName: unit -> string
25 val exnHistory: exn -> string list
26 val exportFn: string * (string * string list -> OS.Process.status) -> unit
27 val exportML: string -> bool
28 val getAllArgs: unit -> string list
29 val getArgs: unit -> string list
30 val getCmdName: unit -> string
34 `SMLofNJ` implements a subset of the structure of the same name
35 provided in <:SMLNJ:Standard ML of New Jersey>. It is included to
36 make it easier to port programs between the two systems. The
37 semantics of these functions may be different than in SML/NJ.
41 implements continuations.
43 * `SysInfo.getHostArch ()`
45 returns the string for the architecture.
51 * `SysInfo.getOSName ()`
53 returns the string for the host.
57 the same as `MLton.Exn.history`.
61 the same as `CommandLine.name ()`.
65 the same as `CommandLine.arguments ()`.
69 the same as `getCmdName()::getArgs()`.
73 saves the state of the computation to a file that will apply `f` to
74 the command-line arguments upon restart.
78 saves the state of the computation to file `f` and continue. Returns
79 `true` in the restarted computation and `false` in the continuing