Here's an example:

user> (def x)
#'user/x

user> (defn foo [] (set! x 10))
#'user/foo

user> (binding [x 1] [x (binding [x 2] [x (do (foo) x)]) x])
[1 [2 10] 1]

Foo passes information to the calling form by assigning to x, within
the innermost binding only.

It sounds like the quote should say "before it [in] the call stack".

-Jason

On Feb 27, 1:08 am, timc <[email protected]> wrote:
> On the page describing Vars, I cannot get the meaning of this sentence
> (a typo has made it incomprehensible I think):
>
> "Bindings created with binding can be assigned to, which provides a
> means for nested contexts to communicate with code before it the call
> stack."
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to