This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Accessing Java Vector from Kawa
- From: Jim White <jim at pagesmiths dot com>
- To: kawa at sources dot redhat dot com
- Date: Mon, 04 Feb 2002 01:59:44 -0800
- Subject: Re: Accessing Java Vector from Kawa
At 09:01 PM 2/4/2002 +1100, Amir Mina wrote:
>Now I want to access a Java Vector from scheme, but when I pass a Java
>Vector to Kawa, I can not access it as a scheme vector nor as a scheme
>list (I get wrong type exception).
>
>Is there a way that I can use to convert a Java Vector, or any other
>java collection, to a scheme list or vector?
I don't have any examples handy at the moment, but there are a couple
different ways to do that. Kawa can use any Java type directly, or you can
create a Kawa type in your Java code.
This info should help:
http://www.gnu.org/software/kawa/kawa_11.html#SEC68
jim
----------------------------------------------------------------
James P. White Pagesmiths' home is http://www.pagesmiths.com
Live free http://www.ushistory.org/franklin/quotable/quote04.htm
Try Kawa, the Java-based Scheme http://www.gnu.org/software/kawa