Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

(let [i 5] (defmacro m [& args] args) (def x (m (inc 5) (inc 6) (inc 7))) [x m (meta #'m)])

is

[(8) #<user$eval522$m__523 user$eval522$m__523@11a74355> {:macro true, :ns #<Namespace user>, :name m, :arglists ([& args]), :line 1, :file "NO_SOURCE_PATH"}]

It appears to be interpreting m as a function despite the metadata. This behavior only shows up inside the (let ...).

3 Answers

0 votes
by

Comment made by: bronsa

The problem is the same as the one for http://dev.clojure.org/jira/browse/CLJ-918

The patch linked there was mine but i had no CA signed at that time, and no account on jira.

Here is the same patch in the correct format.

Bug #918 should be closed as this is a duplicate

0 votes
by

Comment made by: jafingerhut

I've not looked into details yet, but current patch fails to apply cleanly as of Oct 25, 2013 latest Clojure master.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1021 (reported by alex+import)
...