This is the mail archive of the kawa@sources.redhat.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]
Other format: [Raw text]

Re: ClassCastExceptions on cond results


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/


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