[Ecls-list] errors happening in handler silently muffled
Tobias C. Rittweiler
tcr at freebits.de
Sun Feb 7 13:12:56 UTC 2010
;;; /tmp/frob.lisp
(defun test (var thing)
(setf (getf var 'foo) thing))
At REPL:
(handler-bind ((condition
#'(lambda (c)
(format "~&Caught: ~S => ~A~%" c c))))
(compile-file "/tmp/frob.lisp"))
;;; Compiling /tmp/frob.lisp.
;;; OPTIMIZE levels: Safety=3, Space=0, Speed=1, Debug=3
;;; Compiling (DEFUN TEST ...).
Notice that the call to FORMAT is bogus (common typo of mine..)
So an error is signaled in the handler (along with some non-local
transfer of control which explains the mimimum compiler diagnostics),
but that error is nowhere indicated.
-T.
More information about the ecl-devel
mailing list