Sign.stamp_names_of;
authorwenzelm
Thu, 23 Oct 1997 12:10:55 +0200
changeset 3974 d3c2159b75fa
parent 3973 1be726ef6813
child 3975 ddeb5a0fd08d
Sign.stamp_names_of;
src/Pure/goals.ML
src/Pure/section_utils.ML
--- a/src/Pure/goals.ML	Thu Oct 23 12:10:32 1997 +0200
+++ b/src/Pure/goals.ML	Thu Oct 23 12:10:55 1997 +0200
@@ -111,11 +111,10 @@
 
 (*Generates the list of new theories when the proof state's signature changes*)
 fun sign_error (sign,sign') =
-  let val stamps = #stamps(Sign.rep_sg sign') \\ 
-                   #stamps(Sign.rep_sg sign)
-  in  case stamps of
-        [stamp] => "\nNew theory: " ^ !stamp
-      | _       => "\nNew theories: " ^ space_implode ", " (map ! stamps)
+  let val names = Sign.stamp_names_of sign' \\ Sign.stamp_names_of sign
+  in  case names of
+        [name] => "\nNew theory: " ^ name
+      | _       => "\nNew theories: " ^ space_implode ", " names
   end;
 
 (*Default action is to print an error message; could be suppressed for
--- a/src/Pure/section_utils.ML	Thu Oct 23 12:10:32 1997 +0200
+++ b/src/Pure/section_utils.ML	Thu Oct 23 12:10:55 1997 +0200
@@ -66,5 +66,5 @@
 
 (*Check for some named theory*)
 fun require_thy thy name sect =
-  if exists (equal name o !) (stamps_of_thy thy) then ()
+  if exists (equal name) (Sign.stamp_names_of (sign_of thy)) then ()
   else error ("Need theory " ^ quote name ^ " as an ancestor for " ^ sect);