On 18 Apr., 01:51, David McNeil <mcneil.da...@gmail.com> wrote:
> My question is: is there a better way to accomplish this, perhaps > using a mechanism other than proxy? > You can do that with gen-class: http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/gen-class. "... By default, constructors are created for the generated class which match the signature(s) of the constructors for the superclass. ..." So this is sufficient to create a derived class that inherits the superclass constructors (save as file "demo.clj" also in package "demo") : (ns demo.demo (:import [demo Person]) (:gen-class :extends demo.Person)) (println (.toString (demo.demo. 15 "joe"))) (println (.toString (demo.demo. 15))) Regards Stephan -- 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