[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tail recursion optimization
- To: firstname.lastname@example.org
- Subject: Re: tail recursion optimization
- From: franz!fimass!jkf@kim.Berkeley.EDU (John Foderaro)
- Date: Tue, 03 Jun 86 06:27:53 PST
- In-reply-to: Your message of Tue, 03 Jun 86 03:02:00 EDT. <RAM.12211792946.BABYL@C.CS.CMU.EDU>
To answer earl's question: yes, a self-tail-recursive call is made
with a jump to the beginning of the function code.
I agree with Rob, this is an important optimization and 99% of the
time is it precisely what you want. I'd suggest that the Common
Lisp Standard state that within the defun of foo, there is an impliclit
(declare (inline foo))
and if the user plans on redefining foo while executing foo, it is his
burden to (declare (notinline foo)).
-john foderaro, franz inc.