[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tail recursion optimization
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.