p.p.s. i was using -alpha- and changed to -new- (and pulled today) and now i get a slightly different error. am i just flubbing the syntax in some way i can't see for the trees?!
user=> (defprotocol P (foo [x])) P user=> (deftype A [] [P] (.foo [x])) java.lang.RuntimeException: java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to clojure.lang.Symbol (NO_SOURCE_FILE:0) On Tue, Dec 29, 2009 at 12:08 PM, Raoul Duke <rao...@gmail.com> wrote: > i haven't been able to figure out what i'm doing wrong yet. the error > message isn't super helpful :-} > > Clojure 1.1.0-alpha-SNAPSHOT > user=> (defprotocol P (foo [x])) > P > user=> (deftype T [f] [P] (foo [x] x)) > java.lang.ClassCastException: clojure.lang.Var cannot be cast to > java.lang.Class (NO_SOURCE_FILE:2) > > ?! thanks for any help. > -- 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