initial exception handling support

This commit is contained in:
Yuichi Nishiwaki
2013-11-17 17:25:26 +09:00
parent 5668ae1b29
commit fdc9bfea4e
9 changed files with 203 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
(write
(call/cc
(lambda (k)
(with-exception-handler
(lambda (x)
(write "condition: ")
(write x)
(newline)
(k 'exception))
(lambda ()
(+ 1 (raise 'an-error)))))))