[MLton-commit] r4646
Matthew Fluet
MLton@mlton.org
Mon, 12 Jun 2006 09:24:07 -0700
The comment refers to aspects of the entire ML program state that need
to be worried about when saving and loading worlds. (Admittedly, it
is not an exhaustive list.)
----------------------------------------------------------------------
U mlton/branches/on-20050822-x86_64-branch/basis-library/mlton/world.sml
----------------------------------------------------------------------
Modified: mlton/branches/on-20050822-x86_64-branch/basis-library/mlton/world.sml
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/basis-library/mlton/world.sml 2006-06-12 16:19:42 UTC (rev 4645)
+++ mlton/branches/on-20050822-x86_64-branch/basis-library/mlton/world.sml 2006-06-12 16:24:06 UTC (rev 4646)
@@ -17,14 +17,15 @@
datatype status = Clone | Original
(* Need to worry about:
+ * - open file descriptors
* - redetermine buffer status when restart
*)
fun save' (file: string): status =
let
val () =
SysCall.simple'
- ({ errVal = true },
- fn () => Prim.save (NullString.nullTerm file))
+ ({errVal = true},
+ fn () => Prim.save (NullString.nullTerm file))
in
if Prim.getAmOriginal gcState
then Original