clarified EXCEPTIONS [] (cf. Exn.is_interrupt and Runtime.exn_message);
authorwenzelm
Thu, 23 Jun 2011 23:05:38 +0200
changeset 43537 80803078552e
parent 43536 6eec653d5599
child 43538 de5c79682b56
clarified EXCEPTIONS [] (cf. Exn.is_interrupt and Runtime.exn_message);
src/Pure/General/exn.ML
--- a/src/Pure/General/exn.ML	Thu Jun 23 20:30:48 2011 +0200
+++ b/src/Pure/General/exn.ML	Thu Jun 23 23:05:38 2011 +0200
@@ -89,7 +89,8 @@
   else raise EXCEPTIONS (flatten_list (List.mapPartial get_exn results));
 
 fun release_first results = release_all results
-  handle EXCEPTIONS (exn :: _) => reraise exn;
+  handle EXCEPTIONS [] => interrupt ()
+    | EXCEPTIONS (exn :: _) => reraise exn;
 
 end;