CLEAN_UP
signature
signature CLEAN_UP
This modules provides hooks for actions (e.g., closing files) to be performed at various important points in the ML process, such as at process exit.
datatype when = AtExportML | AtExportFn | AtExit | AtInit | AtInitFn
val atAll : when list
val addCleaner : (string * when list * (when -> unit)) -> (when list * (when -> unit)) option
val removeCleaner : string -> (when list * (when -> unit)) option
val clean : when -> unit
datatype when
AtExportML
AtExportFn
AtExit
AtInit
AtInitFn
atAll
addCleaner (name, when, f)
w
in the when list occurs, f(w
) will be called. If there was previously a cleaner (when',g)
associated with that name, then SOME(when',g)
will be removed and returned, otherwise NONE
.
removeCleaner name
NONE
.
clean when
Last Modified October 28, 1997
Comments to sml-nj@research.bell-labs.com
Copyright © 1998 Bell Labs, Lucent Technologies