Peter Taoussanis <ptaoussa...@gmail.com> writes: > Thanks- that explains it: dropping to extend works as expected.
Another option I've been making use of for exactly this situation is to use the #= reader macro to evaluate the Class/forName at read-time. Something like: (extend-protocol MyProtocol java.lang.Integer (action [x] "Integer") #=(Class/forName "[B") (action [x] "ByteArray")) It may not be ideal stylistically, but lets you use extend-protocol in such situations. -Marshall -- 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