there you go:

(defprotocol IBark
 (bark [this]))

(in-ns 'other)
(set! user/*warn-on-reflection* true)

(clojure.core/defrecord Dog []
user/IBark
(bark [_] (clojure.core/println "WOOF!")))

(def d (Dog.))

(user/bark d) ;;NO reflection

(.bark d) ;;reflection!!!!

it should be obvious now :)

Jim


On 12/01/14 13:38, Jim - FooBar(); wrote:
It is not compiling because it cannot find the function...either fully qualify it like in my previous email or change your ns declaration to something like:

[cqrs.storage :as stora]

and then simply use stora/ret-value, stora/write, stora/write-batch

Jim



On 12/01/14 13:26, bob wrote:
If I remove the dot, it cannot be compiled. can you give an example?

On Sunday, January 12, 2014 9:22:00 PM UTC+8, Jim foo.bar wrote:

    I am suspecting you are calling the protocol implementations via
    the `.`
    form, whereas you should be going via the protocol itself (whatever
    namespace that may be in).

    Jim

--
--
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
---
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--
--
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
--- 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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to