Oops, src/proj/two.cljs was  supposed to have (of course):

(ns proj.two)

at the top of the file. [Fixed below].


> On Sep 15, 2015, at 10:08 PM, Jonathan Leonard <[email protected]> wrote:
> 
> src/proj/one.cljs
> =======
> (ns proj.one)
> 
> (defprotocol Proc
>    (meth [this]))
> 
> src/proj/two.cljs
> =======
> (ns proj.two)
> 
> (def ProcImpl
>   (reify one/Proc
>     (meth [_] nil)))  ;; works
> 
> Replace last line of two.cljs with:
>     (one/meth [_] nil)))  ;; does NOT work
> 
> —Jonathan
> 
> 
> 
>> On Sep 15, 2015, at 9:39 PM, David Nolen <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Please provide a minimal example of the issue. Thanks!
>> 
>> David
>> 
>> On Wed, Sep 16, 2015 at 12:28 AM, Jonathan Leonard <[email protected] 
>> <mailto:[email protected]>> wrote:
>> Per the documentation on defprotocol for Clojure itself, such a reference 
>> (e.g., in a reify of a protocol defined in a separate file/namespace) does 
>> require a fully qualified name (and will not accept unqualified name).
>> 
>> Using the fully qualified name in ClojureScript produces the following error:
>> Caused by: clojure.lang.ExceptionInfo: set! target must be a field or a 
>> symbol naming a var at line 7 test/graphql-tlc/core.cljs {:file 
>> "test/graphql-tlc/core.cljs", :line 7, :column 3, :tag :cljs/analysis-error}
>> 
>> Is this a known/expected deviation from Clojure proper?
>> 
>> Thanks!
>> 
>> --
>> Note that posts from new members are moderated - please be patient with your 
>> first post.
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "ClojureScript" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:clojurescript%[email protected]>.
>> To post to this group, send email to [email protected] 
>> <mailto:[email protected]>.
>> Visit this group at http://groups.google.com/group/clojurescript 
>> <http://groups.google.com/group/clojurescript>.
>> 
>> 
>> -- 
>> Note that posts from new members are moderated - please be patient with your 
>> first post.
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "ClojureScript" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/clojurescript/Rgnn_KPSY_o/unsubscribe 
>> <https://groups.google.com/d/topic/clojurescript/Rgnn_KPSY_o/unsubscribe>.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] 
>> <mailto:[email protected]>.
>> To post to this group, send email to [email protected] 
>> <mailto:[email protected]>.
>> Visit this group at http://groups.google.com/group/clojurescript 
>> <http://groups.google.com/group/clojurescript>.
> 

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to