Does macros evaluates its arguments before?

2011-09-26 Thread Ruslan Sorokin
Hi dear clojurians! From Clojure documentation (http://clojure.org/evaluation): ..If the operator of a call is a symbol that names a global var that is a macro function, that macro function is called and is passed the /unevaluated/ operand forms. But: ru@ru-desktop ~/clojure/clojure-1.2.1 $

Exception: Can't define method not in interfaces: fly

2011-09-20 Thread Ruslan Sorokin
Dear! Loading the file: (ns fly.bird) (defprotocol Fly (fly [this]) (fly [this x])) (defrecord Bird [nom species] Fly (fly [this] (str (:nom this) " flies..")) (fly [this x] (str (:nom this) " flies " x))) got this error message: java.lang.IllegalArgumen