On the Java Interop page (http://clojure.org/java_interop), the proxy macro is described as creating "...a instance of a proxy class that implements the named class/interface(s)...". Is this done using Java Dynamic Proxy Classes (http://java.sun.com/j2se/1.5.0/docs/guide/ reflection/proxy.html)?
Background to this question: I came across a blog post (http:// www.plt1.com/1070/even-smaller-snake/) which claims to implement the game "Snake" in 35 lines of clojure. However, it doesn't run; for one thing, in line 26, the syntax for doseq is wrong. Another problem has to do with calling methods from the JPanel class on the proxied JPanel object created in the run-snake function. It looks like you shouldn't call methods on proxied classes that aren't the ones you supplied when creating the proxy - is that true? Thanks for your time, -Matt --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---