This is the mail archive of the kawa@sourceware.cygnus.com mailing list for the Kawa project.


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

Re: kawa question [forwarded]


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

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