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
|