Potential issue with clojure 1.3 and build of 1.4 master from 13/12 or perhaps just my lack of understanding !

2011-12-16 Thread Graham Berks
Hi, learning clojure so this may just be a lack of understanding on my part. Been looking at a post about swing and clojure and it used an agent to implement a flipper with code below. When I run the code in clojure 1.2.1 via (def flipper (new-flipper)) (send flipper start) all is fine and the

Re: Potential issue with clojure 1.3 and build of 1.4 master from 13/12 or perhaps just my lack of understanding !

2011-12-16 Thread Stuart Sierra
This is a problem with a feature introduced in 1.3: binding-conveyance for Agent sends. Starting in 1.3, agent actions are called with the same thread-local Var bindings that were in effect when they were called. In some situations, this can build up a stack of thread-local Var binding frames,

Re: Potential issue with clojure 1.3 and build of 1.4 master from 13/12 or perhaps just my lack of understanding !

2011-12-16 Thread Tassilo Horn
Stuart Sierra the.stuart.sie...@gmail.com writes: Hi Stuart, This is a problem with a feature introduced in 1.3: binding-conveyance for Agent sends. Starting in 1.3, agent actions are called with the same thread-local Var bindings that were in effect when they were called. In some

Re: Potential issue with clojure 1.3 and build of 1.4 master from 13/12 or perhaps just my lack of understanding !

2011-12-16 Thread Stuart Sierra
Tassilo wrote: But shouldn't at least the thread-local Var binding frames be freed after the actions have been performed? Yes. It's a bug. Just created CLJ-898: http://dev.clojure.org/jira/browse/CLJ-898 -S -- You received this message because you are subscribed to the Google Groups Clojure

Re: Potential issue with clojure 1.3 and build of 1.4 master from 13/12 or perhaps just my lack of understanding !

2011-12-16 Thread Tassilo Horn
Stuart Sierra the.stuart.sie...@gmail.com writes: Hi Stuart, Tassilo wrote: But shouldn't at least the thread-local Var binding frames be freed after the actions have been performed? Yes. It's a bug. Just created CLJ-898: http://dev.clojure.org/jira/browse/CLJ-898 I've attached a patch to