On Fri, Mar 27, 2009 at 4:06 PM, hjlee <hj.d....@gmail.com> wrote: > > 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.
Maybe this explains what you are seeing? http://groups.google.com/group/clojure/browse_thread/thread/2bc20199ae5db74d/444619b6093073d5?lnk=gst&q=Unexpected+binding+behavior#444619b6093073d5 -- Michael Wood <esiot...@gmail.com> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---