array has IndexOutOfBoundsException

Chris Dean ctdean@mercedsystems.com
Wed Mar 12 17:14:00 GMT 2003


> seems clear to me:
> 
> you make a new array with one element (shape 0 2 0 9)....

Hmm, I thought that was an array with 18 elements.  That is, a 2x9
array.  For example, this works fine when making a 2x3 array:

#|kawa:217|# (define a (make-array (shape 0 2 0 3) 'O))
#|kawa:218|# (array-set! a 1 2 'E)
#|kawa:219|# a
#2a((O O O) (O O E))

Right?

Regards,
Chris Dean



More information about the Kawa mailing list