I want to use proxy to add a new method to a Java class rather than just overriding an existing method in the Java class.
Here is what I have: ======================================================== (def #^Object bar (proxy [Object] [ ] (foo [number] (* 3 number)))) (def fooFn ((proxy-mappings bar) "foo")) ;; kludge ;; succeeds (def bar4 (fooFn bar 4)) ;; fails with "No matching method found: foo for class clojure.proxy.java.lang.Object" (def bar7 (.foo bar 7)) ======================================================== Is there a way to do this simply? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
