[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proper tail recursion for gcc
From: |
Michael Livshin |
Subject: |
Re: proper tail recursion for gcc |
Date: |
04 Sep 2000 14:17:09 +0300 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (20 Minutes to Nikko) |
Richard Stallman <address@hidden> writes:
> Does Scheme require returning multiple values to be done in a way that
> will work with a caller that expects only the first value?
no, the continuation must expect the precise number of values that is
returned.
[ in fact, it seems that the Scheme multiple-value return facility
tries hard to conceptually unify function calls and value returns,
i.e. a return is just a call to a continuation. ]
> I don't know, but Common Lisp does require this. To make multiple value
> returning compatible with an ordinary call probably requires a new
> compiler feature. At least I don't see a clean way to do that without
> adding a compiler feature.
well, I'm sure CL hackers out there would very much appreciate GCC
taking care of them too ;).
--
Let's start preparing for the future. Now's a good time, since it's
already here.
-- David L. Andre