src/Pure/pure_thy.ML
changeset 4487 9b4c1db5aca1
parent 4258 f2ca5a87f0a7
child 4498 a088ec3e4f5e
--- a/src/Pure/pure_thy.ML	Sun Dec 28 14:56:09 1997 +0100
+++ b/src/Pure/pure_thy.ML	Sun Dec 28 14:56:44 1997 +0100
@@ -50,7 +50,7 @@
 
 fun mk_empty _ =
   Theorems (ref {space = NameSpace.empty,
-    thms_tab = Symtab.null, const_idx = (0, Symtab.null)});
+    thms_tab = Symtab.empty, const_idx = (0, Symtab.empty)});
 
 fun print sg (Theorems (ref {space, thms_tab, const_idx = _})) =
   let
@@ -143,7 +143,7 @@
   in (next + 1, foldl add (table, consts)) end;
 
 fun make_const_idx thm_tab =
-  foldl (foldl add_const_idx) ((0, Symtab.null), map snd (Symtab.dest thm_tab));
+  foldl (foldl add_const_idx) ((0, Symtab.empty), map snd (Symtab.dest thm_tab));
 
 
 (* lookup index *)
@@ -203,7 +203,7 @@
             (warn_same name; false)
           else (warn_overwrite name; true));
 
-    val space' = NameSpace.extend ([name], space);
+    val space' = NameSpace.extend (space, [name]);
     val thms_tab' = Symtab.update ((name, named_thms), thms_tab);
     val const_idx' =
       if overwrite then make_const_idx thms_tab'