I just noticed that Clojure is reacting strangely to overloaded
methods which take a primitive argument.

I'm trying to use ArrayList#remove which is overloaded to both take an
integer and an Object argument. Clojure behaves differently in a let
binding compared to a def.

Correct Behavior:
(let [temp (java.util.ArrayList. ["foo"])]
  (.remove temp (int 0)))

=> returns "foo"

Incorrect behavior:
(def temp (java.util.ArrayList. ["foo"]))
(.remove temp (int 0))

=> returns false.

Thanks for looking into this
-Patrick
--~--~---------~--~----~------------~-------~--~----~
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
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