Re: Get thread local bindings

2008-10-11 Thread ntupel
On Fri, 2008-10-10 at 12:46 -0700, Mike Hinchey wrote: It's usually advised to avoid eval. Many thanks Mike. I would like to avoid eval, but I am too stupid. However I would love to find out how to do it. If you could give me hunch I would be more than happy. See dothread-keeping in

Get thread local bindings

2008-10-10 Thread ntupel
I still try to find a way to make threads inherit thread-local bindings established via binding in the parent thread. I searched for a function to get the thread bindings but couldn't find one. Did I miss anything? So I added getThreadBindings() to Var.java: diff --git

Re: Get thread local bindings

2008-10-10 Thread Mike Hinchey
swank-clojure has a similar issue, but solved by choosing explicitly which bindings to keep. It's usually advised to avoid eval. Of course, this only works for threads created by the specific macro. I suppose the vec of bindings to keep could be keep in a var to avoid repetition.