This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: segmentation fault...
On Tue, 06 May 2003 01:51:34 -0700
Per Bothner <per@bothner.com> wrote:
> 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 ...
you are perfectly right...and I noticed that 5 minutes after, after having dumped my ill-concepted function in guile.
Sorry for the fuss, and thanks for reacting to small siliness like these...
Stan.
> --
> --Per Bothner
> per@bothner.com http://per.bothner.com/
>
>
>
--
+---------------- Stanislas Pinte ------------------+
| Sales Director |
| |
| Alto Software sprl |
| http://www.altosw.be/ |
| |
| cell: 32 476 340 841 |
| email: stan@altosw.be |
+-------------------------------------------------------+