<< Back to previous view

[CLJ-876] #^:dynamic vars declared in a nested form are not immediately dynamic Created: 14/Nov/11  Updated: 09/Dec/11  Resolved: 09/Dec/11

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Release 1.3, Release 1.4
Fix Version/s: Release 1.4

Type: Enhancement Priority: Minor
Reporter: Micah Martin Assignee: Micah Martin
Resolution: Completed Votes: 0
Labels: None
Environment:

All


Attachments: File micah_testing_876.diff    
Patch: Code and Test
Approval: Ok

 Description   

http://groups.google.com/group/clojure/browse_thread/thread/890202da5db0fe1/e34819de71c6ea24?hl=en&lnk=gst&q=micah#e34819de71c6ea24

The following snippet throws an error stating that p is unbound.

(list
(declare ^:dynamic p)
(defn q [] @p))
(binding [p (atom 10)]
(q))



 Comments   
Comment by Micah Martin [ 14/Nov/11 10:10 AM ]

Rich fixed: https://github.com/clojure/clojure/commit/535907eb2be47eaee0c385ae16436f39d52ffa96

Comment by Stuart Halloway [ 02/Dec/11 2:01 PM ]

test for fix already made

Generated at Fri Oct 24 07:47:44 CDT 2014 using JIRA 4.4#649-r158309.