ah I tricked myself... I used "~a" inside the macro instead of "~c" or "~cls"
so back to still impossible
=> (defmacro mew [cls & restt]
(let [c cls]
`(eval (new ~c ~@restt))
)
)
#'runtime.q/mew
=> (let [a java.lang.RuntimeException]
(mew a)
)
CompilerException java.lang.IllegalArgumentException: Unable to resolve classname: a, compiling:(NO_SOURCE_PATH:2:3)
=> (defmacro mew [cls & restt]
`(eval (new ~cls ~@restt))
)
#'runtime.q/mew
=> (let [a java.lang.RuntimeException]
(mew a)
)
CompilerException java.lang.IllegalArgumentException: Unable to resolve classname: a, compiling:(NO_SOURCE_PATH:2:3)