[Ecls-list] errors happening in handler silently muffled

Tobias C. Rittweiler tcr at freebits.de
Sun Feb 7 16:18:43 UTC 2010


Juan Jose Garcia-Ripoll writes:

> I believe this is now fixed.
>
> Juanjo
>
> On Sun, Feb 7, 2010 at 2:12 PM, Tobias C. Rittweiler <tcr at freebits.de>wrote:
>
>>
>> ;;; /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.
>>


Well, trying it again, this will now get me into ECL's native debugger
which probably means that you forgot to heed *DEBUGGER-HOOK*.

  -T.





More information about the ecl-devel mailing list