[lispbox-devel] using trace under lispbox-7.0 slime/emacs/Clozure CL

George Thomas gmt.gthomas at gmail.com
Tue Mar 12 14:36:15 UTC 2013


Answering my own question, in case someone may find it useful --

To fix the problem add the following NOTINLINE declaration to the factorial
example :

  (declare (NOTINLINE factorial));

On Sun, Mar 3, 2013 at 6:03 PM, George Thomas <gmt.gthomas at gmail.com> wrote:

> Hi -
> I did the standard installation on my Windows 7, everything seems OK
> except the trace function. See for example, the following trace is
> executing but its not doing much. Thanks very much for letting me know what
> might be wrong below.
>
> ; SLIME 2011-02-04
> CL-USER> (defun factorial (N)
>   "Compute the factorial of N."
>   (if (= N 1)
>       1
>     (* N (factorial (- N 1)))))
> FACTORIAL
>
> CL-USER> (trace factorial)
> NIL
>
> CL-USER> (factorial 4)
> 0> Calling (FACTORIAL 4)
> <0 FACTORIAL returned 24
> 24
>
> CL-USER>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/lispbox-devel/attachments/20130312/f1a171d8/attachment.html>


More information about the lispbox-devel mailing list