src/Pure/ML-Systems/smlnj.ML
changeset 28284 2161665a0a5d
parent 28268 ac8431ecd57e
child 28443 de653f1ad78b
equal deleted inserted replaced
28283:dbe9c820e4d2 28284:2161665a0a5d
   136     val instream = TextIO.openIn name;
   136     val instream = TextIO.openIn name;
   137     val txt = Exn.release (Exn.capture TextIO.inputAll instream before TextIO.closeIn instream);
   137     val txt = Exn.release (Exn.capture TextIO.inputAll instream before TextIO.closeIn instream);
   138   in use_text tune str_of_pos name_space (1, name) output verbose txt end;
   138   in use_text tune str_of_pos name_space (1, name) output verbose txt end;
   139 
   139 
   140 fun forget_structure name =
   140 fun forget_structure name =
   141   use_text (fn x => x) (fn _ => "") (1, "ML") (TextIO.print, fn s => raise Fail s) false
   141   use_text (fn x => x) (fn _ => "") () (1, "ML") (TextIO.print, fn s => raise Fail s) false
   142     ("structure " ^ name ^ " = struct end");
   142     ("structure " ^ name ^ " = struct end");
   143 
   143 
   144 
   144 
   145 
   145 
   146 (** interrupts **)
   146 (** interrupts **)