The change that caused this problem between 1376 and 1386 was that
count got an inline definition, which allowed it to return a
primitive.  In this case, count is returning an int in both places,
which brought to light the problem that I stated in the previous
post.  The divide issue has been around since Clojure 1.0.

On May 28, 3:03 pm, kotor <cnbe...@netscape.net> wrote:
> After updating to r1381, the following code produces a "reflection
> warning - call to divide can't be resolved" on the last line. This
> warning did not occur at r1376 or earlier.
>
> (defn prime-frequency [x y]
> "integer integer -> real. frequency of primes in range"
>   (let [xy (range x y)]
>     (/ (count (filter prime? xy)) (count xy))))
--~--~---------~--~----~------------~-------~--~----~
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