This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
equal? and arrays
- To: kawa at sourceware dot cygnus dot com
- Subject: equal? and arrays
- From: Luke Gorrie <luke at bluetail dot com>
- Date: 07 Mar 2000 13:05:15 +0100
Should 'equal?' give #t for two equal arrays? I got the unexpected
behaviour:
#|kawa:22|# (define (mk-array) ((primitive-array-new <byte>) 4))
#|kawa:23|# (equal? (mk-array) (mk-array))
#f
I guess this is a side-effect of the implementation of equal(Object)
for arrays in java?
-Luke