I'm having trouble avoiding name collisions with protocols. A third-
party librery defines:
(ns a)
(defprotocol PA
(fa [this ...])
(ga [this ..])
(ha [this ..])
.....)
And i want to be able to use some of this protocol for a type I'm
defining. So I do
(ns b
(:use a :as mya))
(defprotocol Part
(fa [this ..]))
And here clojure complains about that fa is defines in protocol PA of
namespace a.
But if I do:
(ns b
(:use a :only [.... not including fa ..]))
(defprotocol Part
(fa [this ..]))
There are not complains.
Why? Because when it complains one method is mya/fa and the other fa
so no collision should happen.
Thanks.
JM
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en