summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2008-11-26 13:08:46 +0000
committerRich Hickey <richhickey@gmail.com>2008-11-26 13:08:46 +0000
commitb9723b8789ceece011708022b491ece3e440432e (patch)
treef1f2a4bab5a36d9a2c9f31be94efa198d865c2fa
parent18fcdd50ffe1ba3f9b44020c83525123a75e6a25 (diff)
made prefer-method and remove-method functions
-rw-r--r--src/clj/clojure/core.clj8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj
index b896754c..8823304e 100644
--- a/src/clj/clojure/core.clj
+++ b/src/clj/clojure/core.clj
@@ -995,15 +995,15 @@
[multifn dispatch-val & fn-tail]
`(. ~multifn addMethod ~dispatch-val (fn ~@fn-tail)))
-(defmacro remove-method
+(defn remove-method
"Removes the method of multimethod associated with dispatch-value."
[multifn dispatch-val]
- `(. ~multifn removeMethod ~dispatch-val))
+ (. multifn removeMethod dispatch-val))
-(defmacro prefer-method
+(defn prefer-method
"Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y when there is a conflict"
[multifn dispatch-val-x dispatch-val-y]
- `(. ~multifn preferMethod ~dispatch-val-x ~dispatch-val-y))
+ (. multifn preferMethod dispatch-val-x dispatch-val-y))
;;;;;;;;; var stuff