On Jul 30, 1:29 am, John Harrop <jharrop...@gmail.com> wrote:
> user=> (definline addsq [a b] `(+ (* ~a ~a) (* ~b ~b)))
> #'hxr.clj.util/addsq
> user=> (addsq (do (println "a evaluated") 1) 1)
> a evaluated
> a evaluated
> 2
You write the expansion, so you are in control of multiple evaluation.
Rich
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---