You just didn't (flush) Regards, Tim.
On Jul 1, 5:43 pm, Raoul Duke <rao...@gmail.com> wrote: > (i googled but didn't find anything about this yet...) > > while trying to understand the graphics animation code from ants.clj, > i tried this simpler code, but when i run the code below in the repl, > i don't see the "."s until i evaluate something afterwards; then they > get flushed to the console. is this something about agents+repl? or > something else i'm not grokking? many thanks for edification. > > (defn new-animator [] > (agent 0)) > (def running true) > (def animation-sleep-ms 250) > (defn animation [i] > (when running > (send-off *agent* #'animation)) > (print ".") > (. Thread (sleep animation-sleep-ms)) > nil) > (send-off (new-animator) animation) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---