Re: NPE with binding [was: Repl over Socket, binding and threads]

2008-10-09 Thread ntupel
On Thu, 2008-10-09 at 22:06 +0200, ntupel wrote: > After further investigation and experimentation with macros I finally > managed to trigger a NullpointerException: > > user=> (defmacro on-thread [env exp] `(doto (new Thread #(binding ~env > (~exp))) (start))) Ignore me. That's like doing ((pr

NPE with binding [was: Repl over Socket, binding and threads]

2008-10-09 Thread ntupel
On Thu, 2008-10-09 at 02:30 -0700, [EMAIL PROTECTED] wrote: > As bindings are not inherited by new threads, how can this be done > without actually changing the expressions that are evaluated? > > I know that in March it was briefly discussed, but wouldn't it be > useful to have a binding variant