On Sun, Mar 7, 2010 at 7:57 PM, CuppoJava <patrickli_2...@hotmail.com> wrote: > Is there an elegant solution to this problem? I'm working around it by > saving the original println in another variable before creating > myprintln, but this isn't very clean.
That's what I generally do, but you could use a let instead: (let [orig-println println] (defn myprintln [str] (orig-println str) (orig-println "tacked on")) That would make it more self-contained and would also prevent orig-println from getting rebound. -Phil -- 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