This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
Re: kawa question [forwarded]
- To: potts at umich dot edu
- Subject: Re: kawa question [forwarded]
- From: Marco Vezzoli <marco dot vezzoli at st dot com>
- Date: Tue, 15 Feb 2000 07:57:18 +0100
- Cc: kawa at sourceware dot cygnus dot com
- Organization: sgs-thomson
- References: <m2zot3z1kd.fsf@kelso.bothner.com>
As a debugging trial you can move the exception handling code into the
script using the try-catch form; here's an example.
#|kawa:15|# (define (a) (try-catch
#|)---:16|# (display b);now b is unbounded
#|)---:17|# (e <gnu.mapping.UnboundSymbol> (display "unbound"))));
this is the handler. 'e' binds the exception
#|kawa:18|# (a)
unbound#|kawa:19|# (define b "bound");now b is bounded
#|kawa:20|# (a)
bound#|kawa:21|#
I'm not a scheme expert nor a kawa expert but I hope this could help.
Marco
--
(--cafe babe--)
Marco Vezzoli marco.vezzoli@st.com
CR&D Intranet Developement STMicroelectronics
tel. +39 039 603 6852 fax. +39 039 603 5055