Hello,
While playing with clojure.contrib.test-is/with-test I realized that I
was unable to use with-test with macros because the form (defmacro foo
[bar]) returns nil and not #'foo.
Please find attached a patch.
Christophe
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Index: C:/Documents and Settings/Christophe/workspaces/clojure/clojure/src/clj/clojure/core.clj
===================================================================
--- C:/Documents and Settings/Christophe/workspaces/clojure/clojure/src/clj/clojure/core.clj (revision 1215)
+++ C:/Documents and Settings/Christophe/workspaces/clojure/clojure/src/clj/clojure/core.clj (working copy)
@@ -274,7 +274,8 @@
defmacro (fn [name & args]
(list 'do
(cons `defn (cons name args))
- (list '. (list 'var name) '(setMacro)))))
+ (list '. (list 'var name) '(setMacro))
+ (list 'var name))))
(. (var defmacro) (setMacro))