This is the mail archive of the kawa@sourceware.org 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: bug?


Yaroslav Kavenchuk wrote:
http://www.gnu.org/software/kawa/Array-operations.html


Accessing Java array elements


You can access the elements of a Java array by treating it as a
one-argument function, where the argument is the index:

(define primes (<integer[]> 2 3 5 7 11 13))

#|kawa:26|# (define primes (<integer[]> 2 3 5 7 11 13))

java.lang.NoClassDefFoundError: integer
       at atInteractiveLevel$26.run(stdin:26)

Ooops. The problem was that there was a missing step to "lower" the high-level type-name "integer" to the actual class name gnu.math.IntNum. I checked in a fix for this, along with your test case. Thanks. -- --Per Bothner per@bothner.com http://per.bothner.com/


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