Thanks for catching that - I didn't even notice that I was printing the binding var itself… need coffee…
-FS. On May 3, 2012, at 9:59 AM, Meikel Brandmeyer wrote: > Hi, > > Am 03.05.2012 um 18:43 schrieb Frank Siebenlist: > >> user=> (pprint #'clojure.core/*print-length*) >> #<Var@5d2aea3e: nil> >> nil >> user=> (clj-ns-browser.utils/pprint-str #'clojure.core/*print-length*) >> "#<Var@5d2aea3e: 32>\n" >> user=> (with-out-str (binding [*print-length* 32 *print-level* 6] (pprint >> #'clojure.core/*print-length*))) >> "#<Var@5d2aea3e: 32>\n" >> user=> (binding [*print-length* 32 *print-level* 6] (pprint >> #'clojure.core/*print-length*))#<Var@5d2aea3e: 32> >> nil >> user=> (binding [*print-length* 33 *print-level* 6] (pprint >> #'clojure.core/*print-length*)) >> #<Var@5d2aea3e: 33> >> nil >> user=> >> >> >> It seems that the *print-length* binding-value is printed out when the >> var-value is nil. > > Oeh. You always print *print-length* in your examples. And that is never nil, > because you set to 32 in your function. Did you check also other vars? > > For me it seems to work. > > user=> (def f nil) > #'user/f > user=> (binding [*print-length* 32] (clojure.pprint/pprint f)) > nil > > Kind regards > Meikel > > -- > 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 > Note that posts from new members are moderated - please be patient with your > first post. > 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 -- 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 Note that posts from new members are moderated - please be patient with your first post. 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