> > I'm trying the newInstance examples > > fromhttp://en.wikibooks.org/wiki/Learning_Clojure, >> ... > (defn new-instance [#^Class c & args] > (if args > (.newInstance > (.getConstructor c (into-array Class (map class args))) > (into-array Object args)) > (.newInstance c)))
Works like a charm, thanks! -- Miki -- 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 To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.