Hi Andrew,
your problem is that your recursive macro's termination criterion (no
exception thrown for exp) is only there at runtime, but not at macro
expansion time.
Why don't you use a function here?
(defn itry
"Calls f until it succeeds, querying the user for help."
[f]
(try (f)
(catch Exception e
...
(recur f)))
Bye,
Tassilo
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en