This is the mail archive of the kawa@sourceware.cygnus.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]

equal? and arrays


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


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