help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: tail recursion hack in Emacs Lisp?


From: Oliver Scholz
Subject: Re: tail recursion hack in Emacs Lisp?
Date: Fri, 16 Jul 2004 18:23:02 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt)

Oliver Scholz <alkibiades@gmx.de> writes:

[`iterate' macro with code-walker]
>
> So my question is: Can anybody think of a case where this approach
> would break?

Silly me. The usual case for breaking such things would apply:

(iterate fact ((n 10)
               (r 1))
  (if (= n 1)
      r
    (funcall (intern "fact") (1- n) (* n r))))

Not to mention `eval'.

:-(  :-(  :-(


    Oliver
-- 
29 Messidor an 212 de la Révolution
Liberté, Egalité, Fraternité!


reply via email to

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