On 26/09/13 13:10, Dustin Conrad wrote:
(defprotocol Heap
(min [this]
(insert [this x]))
In heap1.clj
(defrecord Heap1 [n]
(min [this] (comment do stuff))
(insert [this x] (comment insert stuff)))
In heap2.clj
(defrecord Heap2 [n]
(min [this] (comment do some different stuff))
(insert [this x] (comment insert stuff in a different way))
your records don't implement the protocol...are you sure this compiles?
It should be :
(defrecord Heap1 [n]
some-ns/Heap
(min [this] (comment do stuff))
(insert [this x] (comment insert stuff)))
Jim
--
--
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
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.