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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to