[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ignore-errors errors, ignoring its spec



>In 2.0f2
>(ignore-errors (car 1)) should return 2 values but instead =>
>> Error: While compiling an anonymous function :
>>        Error: "Can't take CAR of 1." 
>>        signalled during compile-time evaluation of (CAR 1) .
>> Type Command-. to abort.
>See the Restarts. menu item for further choices.

This is a compile time error. IGNORE-ERRORS catches errors at
run time. IMHO, this error is good. It alerts you at compile time
to an error that it can tell will definitely happen at run time.

>
>Also:
>
>(setq *print-readably* t)
>Then type into the listener:
>(make-instance 'window)
>causes the error:
>> Error: Attempt to print object #<WINDOW "Untitled" #x3200C9> on stream 
>#<CCL::TERMINAL-IO #x2A68A1> .
>> While executing: CCL::PRINT-NOT-READABLE-ERROR
>> Type Command-. to abort.
>See the Restarts. menu item for further choices.

As Daniel Ranson said, MCL is doing exactly what you asked it to do
when you set *PRINT-READABLY* true. See CLtL2, p. 557.