problem with resolve

2009-11-24 Thread kony
Hi, I found that resolve does not work correctly (I guess) when it is called from other thread than main: e.g. let define (def zz 123) and afterwords call: (.start (new Thread #(println (resolve 'zz for me it does not work (it returns nil) Workaround is to write a kind of super-resolve

Re: problem with resolve

2009-11-24 Thread Christophe Grand
On Tue, Nov 24, 2009 at 12:01 PM, kony kulakow...@gmail.com wrote: Hi, I found that resolve does not work correctly (I guess) when it is called from other thread than main: e.g. let define (def zz 123) and afterwords call: (.start (new Thread #(println (resolve 'zz for me it

Re: problem with resolve

2009-11-24 Thread John Harrop
On Tue, Nov 24, 2009 at 6:01 AM, kony kulakow...@gmail.com wrote: Hi, I found that resolve does not work correctly (I guess) when it is called from other thread than main: e.g. let define (def zz 123) and afterwords call: (.start (new Thread #(println (resolve 'zz for me it

Re: problem with resolve

2009-11-24 Thread Krukow
On Nov 24, 12:01 pm, kony kulakow...@gmail.com wrote: Hi, I found that resolve does not work correctly (I guess) when it is called from other thread than main: I guess your new thread also has the root binding for *ns* the current namespace, which apparently is core user= (.start (new

Re: problem with resolve

2009-11-24 Thread Krukow
Three concurrent replies. We'd be better off using locks :-) -- 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

Re: problem with resolve

2009-11-24 Thread kony
On 24 Lis, 18:07, Krukow karl.kru...@gmail.com wrote: Three concurrent replies. We'd be better off using locks :-) Three concurrent replies but each of them brings something new ;) Thank you very much for all of them! ... what is the use case,... I am just working on some kind of process

Re: problem with resolve

2009-11-24 Thread Krukow
On Nov 24, 9:45 pm, kony kulakow...@gmail.com wrote: On 24 Lis, 18:07, Krukow karl.kru...@gmail.com wrote: Three concurrent replies. We'd be better off using locks :-) Three concurrent replies but each of them brings something new ;) Thank you very much for all of them! ... what is the