WARNING_outstream : TextIO.outstream ref
The value of reference cell WARNING_outstream controls where HOL_WARNING prints its argument.
The default value of WARNING_outstream is TextIO.stdOut.
- val ostrm = TextIO.openOut "foo";
> val ostrm = <outstream> : outstream
- WARNING_outstream := ostrm;
> val it = () : unit
- HOL_WARNING "Module" "Function" "Sufferin' Succotash!";
> val it = () : unit
- TextIO.closeOut ostrm;
> val it = () : unit
- val istrm = TextIO.openIn "foo";
> val istrm = <instream> : instream
- print (TextIO.inputAll istrm);
<<HOL warning: Module.Function: Sufferin' Succotash.>>