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

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

Re: segfault after changing max-lisp-eval-depth and max-specpdl-size


From: Richard Stallman
Subject: Re: segfault after changing max-lisp-eval-depth and max-specpdl-size
Date: Thu, 30 May 2002 11:05:22 -0600 (MDT)

    That means I'll have to use let/while/setq instead of recursion
    in order to "Avoid arbitrary limits", which produces less
    enjoyable code.

Although max-lisp-eval-depth is an arbitrary limit, the non-arbitrary
limit of the stack size lies behind it.  A program that needs to
recurse for each element in a long or deep data structure really can't
work, in the absence of a tail-recursive interpreter.  If we succeed
in rehosting Emacs on Guile, which is a long-term plan, tail-recursion
would work.  Until that day, you simply have to use iteration.



reply via email to

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