guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: proper tail recursion for gcc


From: Mikael Djurfeldt
Subject: Re: proper tail recursion for gcc
Date: 05 Sep 2000 00:01:56 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

Michael Livshin <address@hidden> writes:

> 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. ]

Yes, this is an important point.

> > 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 ;).

The Dybvig paper discusses an extension which supports the CL style,
but it requires more work, and if we are after maximum efficiency, it
also requires a different user interface in GCC.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]