>
> Yes. The compiler probably optimized away the var lookup to an
> embedded constant. You'll need to use an atom, as Baldridge suggested.
>
The Clojure compiler doesn't optimize anything away. However, in a situation
like this:
(defn foo [x y] ...)
(def bar (partial foo 1))
The binding of `foo` is resolved when `bar` is defined, and never again
thereafter. Changing the root binding of `foo` in this case would have no
effect on `bar`.
-Stuart Sierra
clojure.com
--
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