Hi, I discovered this testing some code this evening:
(String/valueOf nil) ; throws NullPointerException (#(String/valueOf %) nil) ; "null" Another formulation of the above (courtesy of brehaut in IRC): (let [s nil] (String/valueOf s)) ; exception (let [s nil] (String/valueOf ^Object s)) ; "null" The correct output should be "null". It seems that in the direct invocation, the Clojure compiler is choosing the wrong implementation of valueOf. This appears to be the same in both Clojure 1.2 and Clojure 1.3. Is this a bug? jack. -- 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