This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Exceptions



On Sun, 7 Mar 1999, Daniel Burrows wrote:
> I've tried (based on the tiny amount of documentation available and a fair
> amount of code-examination) to set up a catch handler for the main program body;
> however, even when my catch handler is invoked, my program still terminates
> on a Scheme error.  Is there any way to get around this feature?
> 

For my application (Guppi, http://www.gnome.org/guppi/) I copied a bunch
of code out of scwm that does this and it seems to work very well. I have
to admit that I don't understand half of it, but if copying it worked for
me it might for you too. :-) Maybe the scwm guys can give us a better
understanding of the details.

In Gnome CVS, see guppi2/src/scm_guppi.cc, I forget which file it is in
scwm but it's not hard to find (look for the safe_eval_str() function).

Havoc