From gmt.gthomas at gmail.com Mon Mar 4 01:03:44 2013 From: gmt.gthomas at gmail.com (George Thomas) Date: Sun, 3 Mar 2013 18:03:44 -0700 Subject: [lispbox-devel] using trace under lispbox-7.0 slime/emacs/Clozure CL Message-ID: 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: From gmt.gthomas at gmail.com Tue Mar 12 14:36:15 2013 From: gmt.gthomas at gmail.com (George Thomas) Date: Tue, 12 Mar 2013 07:36:15 -0700 Subject: [lispbox-devel] using trace under lispbox-7.0 slime/emacs/Clozure CL In-Reply-To: References: Message-ID: 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 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: