Could someone help me with the use of *debugger-hook*
? I read the CLHS, but am somewhat confused. 

I have a function, call it foo, which grabs text from
the user (via a GUI textbox), reads it with
read-from-string, and evals it.

(eval (read-from-string (ltk:textbox my.textbox)))

I want to use *debugger-hook* to insulate my users
from trouble.

(invoke-restart (car (last (compute-restarts))))
brings me back to the toplevel Lisp without complaint,
but how can I restart the entire eval? On error, I'd
like to simply inform the user that there is a
problem, print the condition, clear the textbox, and
allow the user to re-enter their code and continue. 

Thanks for any help or links to info that you guys can
provide.

Mike


                
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


Reply via email to