I've just started learning protocols, deftype, etc.  The first thing I
did was try to extend a Clojure type (maps) to operate as a
specialized Java Swing interface (AttributeSet), forgetting that
interfaces are not protocols; i.e.

(extend-type clojure.lang.PersistentArrayMap
  javax.swing.text.AttributeSet
  (getAttribute [this k]
                (get this k)))

Is there any way of doing what is intended here: get Clojure maps to
implement Java's AttributeSet?  I've seen Chas Emerick's flowchart,
but I'm still trying to wrap my head around all the choices.

Thanks, Andrew

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