Declares Option_ as synonym for structure Option
authorpaulson
Tue, 20 May 1997 11:53:20 +0200
changeset 3246 7f783705c7a4
parent 3245 241838c01caf
child 3247 067dc2d07489
Declares Option_ as synonym for structure Option
src/Pure/library.ML
--- a/src/Pure/library.ML	Tue May 20 11:49:57 1997 +0200
+++ b/src/Pure/library.ML	Tue May 20 11:53:20 1997 +0200
@@ -119,9 +119,10 @@
 fun andl [] = true
   | andl (x :: xs) = x andalso andl xs;
 
-(*Needed because several object-logics declare the theory, therefore structure,
-  List.*)
-structure List_ = List;
+(*Several object-logics declare theories named List or Option, hiding the
+  eponymous basis library structures.*)
+structure List_ = List
+and       Option_ = Option;
 
 (*exists pred [x1, ..., xn] ===> pred x1 orelse ... orelse pred xn*)
 fun exists (pred: 'a -> bool) : 'a list -> bool =
@@ -742,7 +743,8 @@
 
 (*print error message and abort to top level*)
 
-val error_fn = ref(fn s => TextIO.output (TextIO.stdOut, s ^ "\n"));
+val error_fn = ref(fn s => TextIO.output 
+		            (TextIO.stdOut, "\n*** " ^ s ^ "\n\n"));
 
 exception ERROR;
 fun error msg = (!error_fn msg; raise ERROR);