src/Pure/theory.ML
changeset 29004 a5a91f387791
parent 28965 1de908189869
child 29092 466a83cb6f5f
--- a/src/Pure/theory.ML	Fri Dec 05 11:42:27 2008 +0100
+++ b/src/Pure/theory.ML	Fri Dec 05 18:42:37 2008 +0100
@@ -178,8 +178,8 @@
 
 fun gen_add_axioms prep_axm raw_axms thy = thy |> map_axioms (fn axioms =>
   let
-    val axms = map (apsnd Logic.varify o prep_axm thy) raw_axms;
-    val axioms' = NameSpace.extend_table (Sign.naming_of thy) axms axioms
+    val axms = map (apfst Binding.name o apsnd Logic.varify o prep_axm thy) raw_axms;
+    val axioms' = fold (snd oo NameSpace.bind (Sign.naming_of thy)) axms axioms
       handle Symtab.DUP dup => err_dup_axm dup;
   in axioms' end);