Toplevel.init_theory: pass name explicitly;
authorwenzelm
Wed, 02 Jul 2008 16:40:17 +0200
changeset 27439 7d5c4e73c89e
parent 27438 9b2427cc234e
child 27440 a1eda23752bd
Toplevel.init_theory: pass name explicitly;
src/Pure/Isar/isar_cmd.ML
src/Pure/Isar/outer_syntax.ML
--- a/src/Pure/Isar/isar_cmd.ML	Wed Jul 02 16:40:15 2008 +0200
+++ b/src/Pure/Isar/isar_cmd.ML	Wed Jul 02 16:40:17 2008 +0200
@@ -324,7 +324,7 @@
 val kill_theory = ThyInfo.if_known_thy ThyInfo.remove_thy;
 
 fun theory (name, imports, uses) =
-  Toplevel.init_theory (begin_theory name imports uses)
+  Toplevel.init_theory name (begin_theory name imports uses)
     (fn thy => (end_theory thy; ()))
     (kill_theory o Context.theory_name);
 
--- a/src/Pure/Isar/outer_syntax.ML	Wed Jul 02 16:40:15 2008 +0200
+++ b/src/Pure/Isar/outer_syntax.ML	Wed Jul 02 16:40:17 2008 +0200
@@ -202,7 +202,7 @@
   let
     val result = ref thy;
     val trs = parse (Path.position path) (File.read path);
-    val init = Toplevel.init_theory (K thy) (fn thy' => result := thy') (K ());
+    val init = Toplevel.init_theory "" (K thy) (fn thy' => result := thy') (K ());
     val _ = Toplevel.excursion (init Toplevel.empty :: trs @ [Toplevel.exit Toplevel.empty]);
   in ! result end;