Welcome to the CHICKEN Scheme pasting service

exception handling mumbo jumbo added by mario-goulart on Tue Jul 26 21:40:08 2016

$ cat exn.scm
(handle-exceptions exn
  (print "I don't care")
  (signal (make-property-condition 'exn 'message "continuable")))

(print 1)

(handle-exceptions exn
  (print "I don't care")
  (abort (make-property-condition 'exn 'message "non-continuable")))

(print 2)

(handle-exceptions exn
  (print "I don't care")
  (error))

(print 3)

$ csi -s exn.scm 
I don't care
1
I don't care
2
I don't care
3

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the procedure that returns the cdr of a car?
Visually impaired? Let me spell it for you (wav file) download WAV