This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: segmentation fault...
- From: Per Bothner <per at bothner dot com>
- To: Stan Pinte <stan at altosw dot be>
- Cc: "kawa <Kawa List" <kawa at sources dot redhat dot com>
- Date: Tue, 06 May 2003 01:51:34 -0700
- Subject: Re: segmentation fault...
- References: <20030506101615.7d11b577.stan@altosw.be>
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/