Hello Steve!
When I write a test for binding for this case (using deftest) and run
test_clojure, it doesn't error out. I wonder why is that?
(def a)
(deftest test-binding
(are (= _1 _2)
(binding [a 4] a) 4 ; regression in Clojure SVN r1370
))
Frantisek
PS: Rich, have you seen my bug report?
Minor bug in int-array, long-array, float-array and double-array
http://groups.google.com/group/clojure/browse_frm/thread/0f4e5090770d8a5a#
On May 25, 11:35 am, "Stephen C. Gilardi" <[email protected]> wrote:
> With svn r1370, I get this:
>
> % java -cp clojure.jar clojure.main
> Clojure 1.1.0-alpha-SNAPSHOT
> user=> (def a)
> #'user/a
> user=> (binding [a 4] a)
> java.lang.IllegalStateException: Var user/a is unbound.
> (NO_SOURCE_FILE:0)
> user=>
>
> With svn r1369, I get this:
>
> % java -cp clojure.jar clojure.main
> Clojure 1.1.0-alpha-SNAPSHOT
> user=> (def a)
> #'user/a
> user=> (binding [a 4] a)
> 4
> user=>
>
> I expected the r1369 behavior.
>
> --Steve
>
> smime.p7s
> 3KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---