"Jim - FooBar();" <jimpil1...@gmail.com> writes: >> And when you say you have reflection warnings, can it be that you call a >> protocol method foo with (.foo o) [note the .-syntax]... > > I'm not sure what you mean...Of course I'm calling a protocol method with > (.update-position p coords) - with the '.' > How else can I call it?
Like demonstrated in my first reply. `frobnicate` is a protocol method, and you call it like an ordinary function. ,---- | user> (defn frob1 [p] (frobnicate p)) | #'user/frob1 | user> (defn frob2 [^user.IPiece p] (frobnicate p)) | #'user/frob2 `---- Also see http://www.clojure.org/Protocols Bye, Tassilo -- 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