Hello all,
Is it possible make an existing Java class behave as a seq? What I'm really
asking I guess, is how come Seqable is not a protocol so that we can say
something like

(extend-type java.awt.Container
  clojure.lang.Seqable
  (seq [this] (my-seq-function this)))

I know this can be achieved at creation time by proxy or reify, but this is
not in the spirit of protocols (which can add behaviour on, after the
definition of the type). Am I missing something?
Thanks,
Stathis

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