src/Pure/Isar/toplevel.ML
changeset 17513 0393718c2f1c
parent 17500 964bad535ac6
child 17904 21c6894b5998
--- a/src/Pure/Isar/toplevel.ML	Tue Sep 20 14:03:41 2005 +0200
+++ b/src/Pure/Isar/toplevel.ML	Tue Sep 20 14:03:42 2005 +0200
@@ -642,11 +642,8 @@
 fun >>> [] = ()
   | >>> (tr :: trs) = if >> tr then >>> trs else ();
 
-(*Note: we really do not intend to exhibit interrupts here.
-  Poly/ML needs exception Interrupt to be handled. SML/NJ needs IO to be handled.*)
-fun get_interrupt src = SOME (Source.get_single src) 
-                        handle Interrupt => NONE
-                             | IO.Io _ => NONE;
+(*Spurious interrupts ahead!  Race condition?*)
+fun get_interrupt src = SOME (Source.get_single src) handle Interrupt => NONE;
 
 fun raw_loop src =
   (case get_interrupt (Source.set_prompt (prompt_state (get_state ())) src) of