> What do threads have to do with bindings? How would they interact?

Bindings do not propagate between threads, even if the new thread is  
created within a binding form.

Threads are created with a fresh environment; the values of vars in a  
new thread are the root bindings (the thread-global value), not those  
established in the 'parent' thread.

Bindings are thus thread-local, and if you spawn a new thread you have  
to use some out-of-band means to pass any bindings you wish to  
preserve in that thread.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to