scsh-users
[Top] [All Lists]

Re: Doubt about evaluating code

To: Gautham Anil <gautham_anil@cse.iitb.ac.in>
Subject: Re: Doubt about evaluating code
From: RT Happe <rthappe@web.de>
Date: Sat, 15 Oct 2005 22:37:39 +0200
Cc: scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
Sender: rthappe@web.de
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

<Prev in Thread] Current Thread [Next in Thread>