--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--
I think this issue is related to usingdefrecordordefrecord & defprotocolordefrecord, defprotocol, & extend-protocolI've never bothered to look into the simplest case at which it fails. I have a namespace that has my defrecord, and another namespace that defines the protocol and uses extend-protocol to add behavior for my record type. If I recompile the namespace with the protocol everything is fine, if I recompile the namespace with the defrecord the protocol stops finding the implementation for the protocol. The solution is "rm -rf classes"As a work around I rm & restart my app if I ever change my record - which is very rarely.
(extend-protocol AProto
foo.recs.ARecord
(handle [o]
;; do stuff
))
Thanks for that.
- Chas