Hi Matt - I forgot to add that one, but that also returned Undefined.
Looking at this: https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure It mentions: "The one important difference is in calling no-argument methods. In Java (. x toString), where toString is a method, would unambiguously mean "call the toString method of x". JavaScript is more flexible, separating "method" lookup from invocation. So in ClojureScript you have to make a choice: (. sb toString) => returns a function (. sb (toString)) => calls the function" On Nov 17, 2:33 pm, Matt Hoyt <mrho...@yahoo.com> wrote: > (.setDate (goog.date.fromIsoString "2010-12-31") 1) > > Matt Hoyt > > ________________________________ > From: Base <basselh...@gmail.com> > To: Clojure <clojure@googlegroups.com> > Sent: Thursday, November 17, 2011 2:26 PM > Subject: ClojureScript: Correct way to call an instance method with > parameters? > > HI > > I am attempting to manipulate a goog.date.Date object and am a little > confused on how to call a method on this object in ClojureScript > > If I have a date object, how do I , for example, to set the day of the > month to a different day > > Both > > (. (goog.date.fromIsoString "2010-12-31") (setDate) 1) > > and > > (. (goog.date.fromIsoString "2010-12-31") (setDate 1)) > > yield Undefined. > > Any thoughts? I am sure this is an easy one but I am stuck. > > Thanks in advance > > Base > > -- > 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 > athttp://groups.google.com/group/clojure?hl=en -- 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