If I do, for example:
(defmacro qqq [] \'(toString [this] \"Qqq\"))
(reify Object (qqq))
it fails because of reify
sees
This will work:
(defn reifyx [x y]
(eval `(reify ~x ~y)))
(defn qqq [] '(toString [this] "Qqq"))
(reifyx 'Object (qqq))
I found an apply-macro. I tried it, but it seems to be broken. The most important thing I gleaned from looking at apply-macro
was that it solved the problem using eval
just as I have.