Re: ref to array suddenly changes type

2012-09-21 Thread Piotr Gorak
Andy & Jim - thank you! This explains the whole thing perfectly. Piotr -- 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

ref to array suddenly changes type

2012-09-20 Thread Piotr Gorak
I create a ref to an array: (def r (ref (make-array Integer/TYPE 5))) (type @r) -> [I Then, I try to alter the array: (dosync (alter r aset-int 0 9)) I would then expect to be able to write (aget @r 0) and get result of 9, but what actuall happens is that r becomes reference to java.lang.Lo