Hi,

Am 06.06.2009 um 21:40 schrieb Rob Wolfe:

I'm trying to understand why this program throws an exception:

It doesn't work because

(-> (new StringReader "abc")
  (new clojure.lang.LineNumberingPushbackReader))

expands to

(new (new StringReader "abc") LineNumberingPushbackReader)

while

(-> (StringReader. "abc")
  (LineNumberingPushbackReader.))

expands to

(LineNumberingPushbackReader. (StringReader. "abc"))

which is equivalent to

(new LineNumberingPushbackReader (new StringReader "abc")).

Note the difference.

Sincerely
Meikel

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

Reply via email to