<div class="gmail_quote">On Tue, Mar 23, 2010 at 11:24 PM, Seth Burleigh <span dir="ltr"><<a href="mailto:seth@tewebs.com">seth@tewebs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
In a previous post, I didn't quite test all the possible cases. Now, the<br>
following code will go into a debugger if something like (a:hi) is typed<br>
into the command prompt.  Error message:<br>
<br>
Cannot find the external symbol HI in #<"A" package>.[...]<br>
This time the error results from the c_string_to_object call. However,<br>
shouldn't this be caught by the CL_CATH_ALL_BEGIN clause?<br>
Also, is there any way to access the error object (and thus the error<br>
message) from the CL_CATCH_ALL_BEGIN clause?</blockquote><div><br></div><div>I think you misunderstand the role of CL_CATCH_ALL_BEGIN. It does not catch errors. It catches transfers of control, such as THROW, RETURN, QUIT, etc, that would escape the environmen it sets up. The debugger will still be entered and errors will still be signaled. Error handling has to be done in Lisp, but the error handling code should be surrounded by a CL_CATCH... for safety.</div>
<div><br></div><div>Juanjo</div></div><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://tream.dreamhosters.com">http://tream.dreamhosters.com</a><br>