try1.scm 159 B

12345678910
  1. (define sum 0)
  2. (try-finally
  3. 1
  4. (try-catch
  5. 1
  6. (ex java.lang.Exception
  7. (set! sum 1))))
  8. (format #t "sum: ~d~%" sum)
  9. ;; Output: sum: 0