2008/9/17 Stuart Sierra <[EMAIL PROTECTED]> > > Brief response to: > > On Sep 16, 11:40 pm, falcon <[EMAIL PROTECTED]> wrote: > > I also notice that Clojure has the ability > > to change programs while they are running; however, I haven't been > > able to find examples of this. > > Most Lisps give you this for free, since the compiler is integrated > into the runtime. You can connect to a REPL on a running server, re- > def a function, and it takes effect immediately. There are several > REPL-over-a-socket experiments in the mailing list archives, but no > canonical implementation yet. >
I don't see how this should work. The re-defined variable has thread-local scope and shouldn't be viewable in other threads. If it was not so, then evaluating a form (foo ...) would mean that foo would have to be looked up through a ref. Which in turn means that you need to be in a transaction. This again means you wouldn't see the mutation that is done in another thread anyway. Alexander --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---