Hello

Apologies if I'm misunderstanding something here, but is it possible
to easily extend to a new java type?  For example:

proxy -> allows you to implement methods that are already defined in
an interface or class, so you can redefine methods

(proxy [ClassA] []
(thisMustBeDefinedInClassA [] ...)

extend-type -> allows you to extend an existing java type

(extend-type [String]
AProtocol
(nowAllStringsCanDothis [this] ...)

but what about

(proxy2  [String]
AProtocol?
(theseBehaveAsStringsWithThisAdded [] ...)

leaving regular Strings unaffected?

do I need to fall back to using gen-class?

Thank you for any suggestions!


- Lachlan

-- 
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

Reply via email to