> Do I understand correct that the only way to hook > a recursive function without affecting other > threads is to annotate the function with > ^{:dynamic true} and call it via #'fact?
If you want to you dynamic rebinding, yes. There are other possibilities, however. Maybe you could pass the function in as an argument. Maybe you could use 'trampoline' and *return* the recursive function. The point is, if you want to be able to alter something at runtime, see if you can do it through "ordinary" means before going to dynamic Vars. It will be faster and possibly easier to understand. -S -- 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