Hi,

I would like to define a protocol as a super set of another. For example:

(defprotocol P1
  (f [this]))

(defprotocol P1WithExtras
  ;; something like :extends P1
  (g [this]))

;; P1WithExtras should now contain f and g.

I may have missed, but I did not find how to do it from the documentation.

Any suggestions on how to define a protocol as a superset of another? Or on an 
alternative solution?

Thanks,

Alexandre

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