Thank you, David. I knew it's not supported in Clojure. However I assumed ClojureScript supports this syntax since everything works as expected if v is not used inside method body :)
пятница, 11 сентября 2015 г., 19:22:10 UTC+3 пользователь David Nolen написал: > Protocol methods do not support var args. We should probably add a syntax > check for this, http://dev.clojure.org/jira/browse/CLJS-1445 > > > David > > > On Fri, Sep 11, 2015 at 12:13 PM, Yuri Govorushchenko <[email protected]> > wrote: > Hello, > > > > I guess I've stumbled upon a compilation error. The repo for reproducing is > here: > > > > https://github.com/metametadata/cljs-reify-error > > > > TL;DR: > > > > (let [v 123 > > obj (clojure.core/reify > > Object > > (meth [this x y & z] ;; remove ampersand to make this script work > > [v x y z]))] > > (println (.meth obj 1 2 3))) > > > > produces an error: > > > > ersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [self__.v, > > ReferenceError: self__ is not defined > > > > Thanks in advance. > > > > -- > > 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. -- 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.
