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] |
Here is a function that throws a NullPointerException when it should just return #t:
(define test1
(lambda ()
(define (some? pred? alist)
(cond ((null? alist) #f)
((pred? (car alist)) #t)
(else (some? pred? (cdr alist)))))
(display "")
(define (clicked? button) (not (null? button)))
(define (some-clicked? buttons)
(some? clicked? buttons))
(some-clicked? '(#t #t #f ()))
(some-clicked? '(#t #t #f ()))))
This now works. -- --Per Bothner per@bothner.com http://per.bothner.com/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |