ah hah. i think.

(ns nst1)
(deftype T1 [f1])
(println (ns-publics 'nst1))

(ns nst2)
(defprotocol P2 (foo [this]))
(deftype T2 [f2] :as this P2 (foo [] this))
(println (ns-publics 'nst2))

(ns nst3)
(println "nst3 using nst2" (nst2/foo (nst2/T2 1)))

(ns nst4)
(deftype T4 [f4] :as this nst2/P2 (foo [] this))
(nst2/foo (T4 4))
-- 
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