[Ecls-list] trace macro seems to not accept any option, e.g. :step (ECL 12.2.1)

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sun May 27 19:24:34 UTC 2012


On Sat, May 26, 2012 at 5:20 PM, Antonio Bonifati <
antonio.bonifati at gmail.com> wrote:

> What am I doing wrong? Does the (trace) macro accept lists, doesn't it?
>

No, this is just a legacy option which is not used by the current
interpreter. The original interpreter was based on a code performing list
traversal; the current one is a bytecodes compiler which has the option to
step through code, but this has to be told at compilation time. The :step
option could be reimplemented by forcing the function to be re-compiled,
though.


> BTW the equivalent and very similar option in another Lisp (GNU CLISP)
> works:
> (trace (factorial :step-if t))
>

That does not mean much. GCL has a totally different (and slower)
interpreter.

Juajo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120527/422e346d/attachment.html>


More information about the ecl-devel mailing list