[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: email@example.com
- Subject: Re: debug
- From: firstname.lastname@example.org (Robert Futrelle)
- Date: 28 Sep 1994 17:44:17 GMT
- Newsgroups: comp.lang.lisp.mcl
- Organization: College of CS, Northeastern University
- References: <email@example.com>
In article <firstname.lastname@example.org> email@example.com (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.
firstname.lastname@example.org | Boston, MA 02115
- From: email@example.com (Yngve Skramm)