Apress / common-lisp-condition-system

Source Code for 'The Common Lisp Condition System' by Michal "phoe" Herda
Other
97 stars 10 forks source link

Set difference in section 2.9.9 #10

Open ludanpr opened 3 years ago

ludanpr commented 3 years ago

On page 131, the set difference operation,

2.9.9 Associating conditions with restarts

shouldn't it be

(let ((*print-escape* nil))
  (format t "~&~{;; ~W~%~}"
            (set-difference
              (compute-restarts)
              (compute-restarts *debugger-condition*))))

instead of

(let ((*print-escape* nil))
  (format t "~&~{;; ~W~%~}"
            (set-difference
              (compute-restarts *debugger-condition*)
              (compute-restarts))))

?