Structure CM also provides functions to explicitly manipulate the path anchor configuration. These functions are members of structure CM.Anchor.
structure Anchor : sig
val anchor : string -> string option controller
val reset : unit -> unit
end
CM.Anchor.anchor returns a pair of get and set functions that can be used to query and modify the status of the named anchor. Note that the get- set-pair operates over type string option; a value of NONE means that the anchor is currently not bound (or, in the case of set, that it is being cancelled). The (optional) string given to set must be a directory name in native syntax ( without trailing arc separator, e.g., / in Unix). If it is specified as a relative path name, then it will be expanded by prepending the name of the current working directory.
CM.Anchor.reset erases the entire existing path configuration. After a call of this function has completed, all root environment locations are marked as being ``undefined''.