This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
RE: array has IndexOutOfBoundsException
- From: Pinte_Stanislas at emc dot com
- To: ctdean at mercedsystems dot com, kawa at sources dot redhat dot com
- Date: Wed, 12 Mar 2003 06:07:10 -0500
- Subject: RE: array has IndexOutOfBoundsException
seems clear to me:
you make a new array with one element (shape 0 2 0 9)....
--> index 1 points to the second element...the first element has index 0.
-----Original Message-----
From: Chris Dean [mailto:ctdean at mercedsystems dot com]
Sent: woensdag 12 maart 2003 10:45
To: Kawa List
Subject: array has IndexOutOfBoundsException
Any idea what's going on here?
(define a (make-array (shape 0 2 0 9)))
(array-set! a 1 3 'e)
java.lang.IndexOutOfBoundsException
at gnu.lists.SimpleVector.set(SimpleVector.java:144)
at gnu.lists.GeneralArray.set(GeneralArray.java:135)
at gnu.kawa.functions.ArraySet.applyN(ArraySet.java:55)
at gnu.mapping.Procedure.apply(Procedure.java:102)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:239)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:188)
at kawa.Shell.run(Shell.java:232)
at kawa.Shell.run(Shell.java:180)
at kawa.Shell.run(Shell.java:167)
at kawa.repl.processArgs(repl.java:333)
at kawa.repl.main(repl.java:594)
Regards,
Chris Dean