src/Pure/context.ML
changeset 51686 532e0ac5a66d
parent 51368 2ea5c7c2d825
child 52682 77146b576ac7
--- a/src/Pure/context.ML	Wed Apr 10 15:30:19 2013 +0200
+++ b/src/Pure/context.ML	Wed Apr 10 17:02:47 2013 +0200
@@ -21,6 +21,7 @@
   sig
     val theory_of: Proof.context -> theory
     val init_global: theory -> Proof.context
+    val get_global: theory -> string -> Proof.context
   end
 end;
 
@@ -504,6 +505,7 @@
 struct
   val theory_of = theory_of_proof;
   fun init_global thy = Proof.Context (init_data thy, check_thy thy);
+  fun get_global thy name = init_global (get_theory thy name);
 end;
 
 structure Proof_Data =