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: segmentation fault...


Stan Pinte wrote:
hello,

I am having a segmentation fault using kawa...

here is the scheme code I throw into the REPL:

(define (rebind-results function arg . rest )
(if rest (rebind-results function rest)
(set! arg (function arg))))


(rebind-results (lambda (x) (+ x 1)) '(1 2 3))
...
any idea?

I get: #|kawa:5|# (rebind-results (lambda (x) (+ x 1)) '(1 2 3)) java.lang.StackOverflowError

- which seems reasonable if you remember than in Scheme
the empty list is true ...
--
	--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]