Nice git fu! With that help, here is a Clojure-only (no contrib.def) sequence that shows the difference between 1.1 and 1.2:

;; all running on 1.2, DIFF noted in comments

(defmacro foo [])
-> #'user/foo

(meta (def bar (.getRoot #'foo)))
-> {:macro false, :ns #<Namespace user>, :name bar, :file "NO_SOURCE_PATH", :line 83}
;; DIFF: where did that :macro false come from??

(def bar (.getRoot #'foo))
-> #'user/bar

(meta #'bar)
-> {:ns #<Namespace user>, :name bar, :file "NO_SOURCE_PATH", :line 84}
;; LIKE 1.1, but really weird: now the :macro false is gone again!

Hmm...

On 22 February 2010 15:43, Stuart Halloway <stuart.hallo...@gmail.com> wrote:
With 1.1 you could defalias a macro:

(defmacro foo)
(defalias bar foo)

With 1.2, the {:macro true} gets set to {:macro false}, so bar isn't a macro. I spent a few minutes and couldn't find the change that caused this.

I like the 1.1 behavior better. Anybody know the story on how this changed?

git bisect to the rescue!

The last good revision appears to be:

commit 277f0235c1387ddd6247a72857597814a3e10bc3
Author: Rich Hickey <richhic...@gmail.com>
Date:   Thu Jan 14 19:27:54 2010 -0500

   add &form and &env implicit args to macros

i.e. the one that appears to have broken it is:

commit 430dd4fa711d0008137d7a82d4b4cd27b6e2d6d1
Author: Rich Hickey <richhic...@gmail.com>
Date:   Tue Jan 19 14:25:26 2010 -0500

   metadata for fns

--
Michael Wood <esiot...@gmail.com>

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to