Dex,

Thanks for the info. It's nice to understand what's going on. I am
trying to dig into the source more to get a deeper understanding of
the language, but Clojure is my first exposure to Java, so that part
is slow going.

On May 28, 8:24 pm, Dex Wood <slash2...@gmail.com> wrote:
> 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
Note that posts from new members are moderated - please be patient with your 
first post.
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