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: 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


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