Re: Doubt about evaluating code
RT Happe <[email protected]> Sat, 15 Oct 2005 22:37:39 +0200
| Newsgroups | gmane.lisp.scheme.scsh |
|---|---|
| Message-ID | <[email protected]> |
Gautham Anil wrote:
> codes. The program must continue gracefully with the next piece of
> generated code in the common case that the current piece does not
> compile.
The procedure IGNORE-ERRORS from structure EXCEPTIONS may be good
enough:
Welcome to scsh 0.6.6 (King Conan)
Type ,? for help.
> ,open handle
> (ignore-errors (lambda () (eval '(#f #f)
(interaction-environment))))
Warning: non-procedure in operator position
(#f #f)
(procedure: #{Type :boolean #f #f})
'(exception 24 bad-procedure #f (#f))
>
(This was a printed warning and a returned exception descriptor.)
You may want to consult the scsh faq and possibly comment on the
questions and answers, too.
rthappe