Accessing Java Vector from Kawa

Jim White jim@pagesmiths.com
Fri Dec 20 10:36:00 GMT 2002


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



More information about the Kawa mailing list