[Openmcl-devel] trace on recursive functions

Stas Boukarev stassats at gmail.com
Wed Dec 9 16:18:10 PST 2009


Philippe Sismondi <psismondi at arqux.com> writes:

> What must I do to get trace to work as shown in Hyperspec on recursive  
> functions? I only get a report of the first call to a traced function.
>
Perhaps you have a tail-recursive function. Then you need to set a higher
debugging setting.

For example:

(defun plus (a b)
  (declare (optimize debug))
  (if (plusp b)
      (plus (1+ a) (1- b))
      a))
-- 
With Best Regards, Stas.



More information about the Openmcl-devel mailing list