src/Pure/ML/ml_final.ML
author wenzelm
Mon, 04 Apr 2016 15:53:56 +0200
changeset 62846 3c576c7f9731
child 62847 1bd1d8492931
permissions -rw-r--r--
clarified final setup of ML environment;

(*  Title:      Pure/ML/ml_final.ML
    Author:     Makarius

Final setup of ML environment.
*)

(*no access to system internals!*)
structure PolyML = struct structure IntInf = PolyML.IntInf end;
val _ = List.app ML_Name_Space.forget_structure ML_Name_Space.critical_structures;

structure Output: OUTPUT = Output;  (*seal system channels!*)

structure Pure = struct val thy = Thy_Info.pure_theory () end;

fun use_thys args =
  Runtime.toplevel_program (fn () => Thy_Info.use_thys (map (rpair Position.none) args));
val use_thy = use_thys o single;

Proofterm.proofs := 0;

Context.set_thread_data NONE;