Hi,

I am coming from Clojure from Common Lisp and was surprised to find
that Stuart Sierra's clojure.contrib.trace was not the same as Common
Lisp's trace function.  Are there any libraries out there that will
give me the basic trace/untrace functionality that I am used to in
Common Lisp?

Common Lisp trace works like this:

? (defun foo (x) (+ x 1))
FOO
? (defun bar (x) (+ x (foo x)))
BAR
? (trace foo bar)
NIL
? (bar 5)
0> Calling (BAR 5)
 1> Calling (FOO 5)
 <1 FOO returned 6
<0 BAR returned 11
11
? (untrace)
(BAR FOO)
? (bar 5)
11

Thanks,
Mike

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to