defining function from common lisp
dear lazyweb,
from peter norvig's paip:
(defun debug (&rest ids)
"Start debug output on the given ids."
(setf *dbg-ids* (union ids *dbg-ids*))
but ...
while there is no function debug that this would overwrite, the symbol is exported from common-lisp, and i get a
continuable error "Defining function DEBUG visible from package COMMON-LISP".
there *is* a restart 'continue however, so i came up with this:
(dspec:def debug
(handler-bind ((error #'continue))
(defun debug (&rest ids)
"Start debug output on the given ids."
(setf *dbg-ids* (union ids *dbg-ids*)))))
which works, but is this really a good idea?
thanks in advance,
juergen