This is the mail archive of the kawa@sources.redhat.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]
Other format: [Raw text]

bug in Kawa 1.7: wrongly reports call has too few arguments


Hi,

here's an error message new from Kawa-1.7 which I do not obtain in 1.6.98 or 1.6.99.1.

#|kawa:1|# (define (string->integer str start end)
  (and (< -1 start end (+ (string-length str) 1))
    (let loop ((pos start) (accum 0))
      (cond
        ((>= pos end) accum)
        ((char-numeric? (string-ref str pos))
          (loop (+ pos 1) (+ (char->integer (string-ref str pos)) 
              (- (char->integer #\0)) (* 10 accum))))
        (else #f)))))
#|(---:2|# #|(---:3|# #|(---:4|# #|(---:5|# #|(---:6|# #|(---:7|# #|(---:8|#
 #|(---:9|# <unknown>:0: call to '<op 116>(int,int)' has too few arguments (1; must be 2)

In older versions of Kawa, the code worked fine.
 ;(string->integer "123" 0 3)
 ;(string->integer "123456" 0 3)
 ;(string->integer "123456" 1 3)

The Scheme code (from SSAX/util.scm) looks fine to me.

Regards,
	Jörg Höhle
Testing using Kawa-1.7/1.6.99.1/1.6.98/1.6.97.1(brl) using JDK 1.3.1 on MS-w2k


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