src/Pure/ML-Systems/mosml.ML
changeset 22144 c33450acd873
parent 21770 ea6f846d8c4b
child 22252 ce77e9622002
equal deleted inserted replaced
22143:cf58486ca11b 22144:c33450acd873
   131 
   131 
   132 
   132 
   133 (* ML command execution *)
   133 (* ML command execution *)
   134 
   134 
   135 (*Can one redirect 'use' directly to an instream?*)
   135 (*Can one redirect 'use' directly to an instream?*)
   136 fun use_text _ _ txt =
   136 fun use_text _ _ _ txt =
   137   let
   137   let
   138     val tmp_name = FileSys.tmpName ();
   138     val tmp_name = FileSys.tmpName ();
   139     val tmp_file = TextIO.openOut tmp_name;
   139     val tmp_file = TextIO.openOut tmp_name;
   140   in
   140   in
   141     TextIO.output (tmp_file, txt);
   141     TextIO.output (tmp_file, txt);