The goal is to can write this form: => *(let [a java.lang.RuntimeException] (new a) )* CompilerException java.lang.IllegalArgumentException: Unable to resolve classname: a, compiling:(NO_SOURCE_PATH:2:3)
attempt with macro: =>* (defmacro mew [cls & restt] `(new ~(eval cls) ~@restt) )* #'runtime.q/mew => *(let [a java.lang.RuntimeException] (mew a) )* CompilerException java.lang.UnsupportedOperationException: Can't eval locals, compiling:(NO_SOURCE_PATH:2:3) attempt with function: => *(defn mew [cls & restt] (new cls) )* CompilerException java.lang.IllegalArgumentException: Unable to resolve classname: cls, compiling:(NO_SOURCE_PATH:2:3) attempt with a macro inside the function: => *(defn mew [cls & restt] (mew cls) )* CompilerException java.lang.UnsupportedOperationException: Can't eval locals, compiling:(NO_SOURCE_PATH:2:3) Ok, i give up, how? impossible ? -- Please correct me if I'm wrong or incomplete, even if you think I'll subconsciously hate it. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.