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]

Re: Kawa-1.7beta1 available


Bruce Lewis wrote:

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]