[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: firstname.lastname@example.org
- Subject: Re: debug
- From: email@example.com (Robert Futrelle)
- Date: 28 Sep 1994 17:44:17 GMT
- Newsgroups: comp.lang.lisp.mcl
- Organization: College of CS, Northeastern University
- References: <firstname.lastname@example.org>
In article <email@example.com> firstname.lastname@example.org (Yngve Skramm) writes:
>Beginner question about MCL 2.0: We can't seem to get trace to work
>properly. It shows values entering and exiting a function, that is correct.
>However a recursive function is called several times, and should produce an
>output from trace every time it is called. This doesn't happen :-( We copy
>the manual exactly, but get a different printout. Has anybody got a
>solution to this problem?
If the function is tail-recursive, it is normally compiled as such and
there are no recursive calls to trace! Maybe that's your problem.
Tail recursion compiling can be turned off. The other trick is to
put in a useless statement that renders it non-tail-recursive to
force it to compile that way.
Prof. Robert P. Futrelle | Biological Knowledge Lab, College of CS
Office: (617)-373-2076 | Northeastern University, 161CN
Fax: (617)-373-5121 | 360 Huntington Ave.
email@example.com | Boston, MA 02115
- From: firstname.lastname@example.org (Yngve Skramm)