This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: ClassCastExceptions on cond results
- From: Per Bothner <per at bothner dot com>
- To: Charles Duffy <cduffy at mvista dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Wed, 10 Jul 2002 10:22:05 -0700
- Subject: Re: ClassCastExceptions on cond results
- References: <1026320135.9967.10.camel@dufflap>
Charles Duffy wrote:
(define (map-change-data value)
(cond ((instance? value <com.mvista.changesys.om.Change>) => (invoke (as <com.mvista.changesys.om.Change> value) 'getChangeId))
...
Any insight as to what's going on would be appreciated. Thanks!
The expression after the => must evaluate to a procedure that takes
one argument, which is applied to the value of the test.
I'm guessing you want to leave out all the => arrows.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/