agents + repl?

2009-07-01 Thread Raoul Duke
. 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

Re: agents + repl?

2009-07-01 Thread Timothy Pratley
, 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

Re: agents + repl?

2009-07-01 Thread Michał Kwiatkowski
to the console. is this something about agents+repl? or something else i'm not grokking? many thanks for edification. Try adding (flush) after your print. By default only newline characters flush the output, so if you don't end your message with a newline you have to flush manually. Cheers, mk

Re: agents + repl?

2009-07-01 Thread Raoul Duke
i don't see the .s until i evaluate something afterwards; then they many thanks to all for the help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to