Thanks to everyone who replied, this makes sense (methods with args
need separation).

I'll check out -> too.

I appreciate it!!!

Mike

On Dec 9, 5:02 pm, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 09.12.2009 um 20:04 schrieb Mike:
>
> > If I write:
>
> > (.setMessage (.getMonitor this) "Counting...")
>
> > and it works, why would
>
> > (.. this getMonitor setMessage "Counting...")
>
> > give me an IllegalArgumentException: Malformed member expression
> > (count-script.clj:11)?
>
> Because your .. form is equivalent to
>
> (."Counting..." (.setMessage (.getMonitor this)))
>
> You are missing a pair of quotes:
>
> (.. this getMonitor (setMessage "Counting..."))
>
> Consider using the -> macro since it also allows clojure function and macros 
> and not only methods.
>
> (-> this .getMonitor (.setMessage "Counting..."))
>
> Sincerely
> Meikel
>
>  smime.p7s
> 3KViewDownload

-- 
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

Reply via email to