small tuning
authorChristian Urban <urbanc@in.tum.de>
Mon, 15 Feb 2010 16:37:48 +0100
changeset 1151 2c84860c19d2
parent 1150 689a18f9484c
child 1152 fbaebf08c1bd
child 1153 2ad8e66de294
small tuning
Quot/quotient_def.ML
--- a/Quot/quotient_def.ML	Mon Feb 15 16:28:07 2010 +0100
+++ b/Quot/quotient_def.ML	Mon Feb 15 16:37:48 2010 +0100
@@ -38,9 +38,13 @@
    side must be a constant.
 *)
 fun error_msg bind str = 
+let 
+  val name = Binding.name_of bind
+  val pos = Position.str_of (Binding.pos_of bind)
+in
   error ("Head of quotient_definition " ^ 
-    (quote str) ^ " differs from declaration " ^ (Binding.name_of bind) ^
-      Position.str_of (Binding.pos_of bind))
+    (quote str) ^ " differs from declaration " ^ name ^ pos)
+end
 
 fun quotient_def ((optbind, mx), (attr, (lhs, rhs))) lthy =
 let