Looking at the clojure.main/repl code, I can see that they print the result value to stdout, and that I can change that by assigning a different function to the :print option at repl-startup.
It's a little tricky, but that does allow me to turn the printing of results on/off, which would give me what I was looking for. Thanks for your help! -Frank. On Dec 30, 2011, at 1:31 PM, gaz jones wrote: >> Yes - I do get the result of the print function in the repl (i.e. nil), and >> I'm trying to see how I can somehow prevent that nil from printing to stdout. > > Yeah, the point I was making is that you are always going to see that > 'nil' printed at the repl because it always evaluates and prints the > result of the function, where as in reality that 'nil' would never get > written to stdout (unless you explicitly captured it and wrote it > yourself). It's the repl that's special - not the -main function. > > -- > 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