On Saturday, January 31, 2015 at 6:34:10 PM UTC-5, Michael Blume wrote: > > The defn wrapping the call to proxy basically is the constructor, so you > wind up with something roughly like > > (defn get-window [] > (let [this (proxy [Window] ["My Window!"] > ; any methods you want to override on Window go here > ) > ; stuff making panels goes here > ] > (.addComponent this horizontal-panel) > this)) > > Note, I'm calling a variable 'this' but it's *just a variable, the only > reason I called it 'this' was to make it look more like the java version. > Did either of the last two posters read the docs for proxy? :)
https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/proxy ... "Each method fn takes an additional implicit first arg, which is bound to 'this." -- 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/d/optout.