[CLJ-946] eval reader fail to recognize function object Created: 06/Mar/12 Updated: 07/Mar/12 |
|
| Status: | Open |
| Project: | Clojure |
| Component/s: | None |
| Affects Version/s: | Release 1.3 |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Minor |
| Reporter: | Naitong Xiao | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
(defmacro stubbing [stub-forms & body] This macro is from Clojure In Action , whith the commented line rewrited (I know that original is better) (def ^:dynamic $ (fn [x] (* x 10)) (stubbing [$ 1] ;;macro can expanded I thought there is something wrong with eval reader, but i can't figure it out btw the above code can run on clojure-clr |
| Comments |
| Comment by Michael Klishin [ 06/Mar/12 11:24 PM ] |
|
As far as I know, Clojure in Action examples are written for Clojure 1.2. What version are you using? |
| Comment by Naitong Xiao [ 07/Mar/12 1:24 AM ] |
|
I use clojure 1.3 The example in Clojure In Action is Ok on clojure 1.3 |