Advertisement
Guest User

Untitled

a guest
May 16th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defmacro handler-bind* (bindings &body body)
  2.   (expand-handler-binds bindings body))
  3.  
  4. (eval-when (:compile-toplevel)
  5.   (defun expand-handler-binds (bindings body)
  6.     (let ((binding (first bindings)))
  7.       (if binding
  8.           `(handler-bind (,binding)
  9.              ,(expand-handler-binds (rest bindings) body))
  10.           `(progn ,@body)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement