On Mon, Feb 16, 2009 at 4:30 AM, bOR_ <boris.sch...@gmail.com> wrote: > > (remove-method print-method clojure.lang.IDeref) works like a charm, > but > > (binding [*print-level* 1] > @(world 1)) > > doesn't seem to have the desired effect. Not sure why not.
Entering that at the REPL will change the value of *print-level* while you dereference, but no printing is being done then. After the value is returned to outside the binding form (and therefore the value of *print-level* has been restored to whatever it was before), that's when the REPL print the value. So at a REPL you may want to make a more lasting change by doing: (set! *print-level* 10) ; or something like that. Note that this new value of *print-level* is seen only by the thread your REPL is currently running in. --Chouser --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---