Hi, all.

Story:
I couldn't understand my "binding" form behavior.

(binding [*print-level* 2 *print-length* 2] (some-function))

but, some outputs didn't confirm the bound value.

After some investigation on my code and output, I found the reason.
 - I used pmap

Well, I can use "set!", but I think that's not a solution.
I could "set!" *print-level* and *print-length.
But I couldn't "set!" other defs defined in other ns.
(I guess that's not intended use of "set!". right?)
And think about something like *out*.

I don't know that's intended behavior of "binding" or not.
Anyway I think something like thread-propagate-binding is needed.

Thanks.

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

Reply via email to