chibi-scheme/lib/srfi/2.module
Alex Shinn 44a6c530d9 EVAL save/restores the current exception handler.
It doesn't really make sense for an exception to pass
outside of EVAL.  Fixes issue #17.
2009-12-28 23:18:04 +09:00

16 lines
420 B
Text

(define-module (srfi 2)
(export and-let*)
(import-immutable (scheme))
(body
(define-syntax and-let*
(syntax-rules ()
((and-let* () . body)
(begin . body))
((and-let* ((var expr) . rest) . body)
(let ((var expr))
(and var (and-let* rest . body))))
((and-let* ((expr) . rest) . body)
(let ((tmp expr))
(and tmp (and-let* rest . body))))))))