I was the source of this error, and I agree that the behavior is an
error.  I missed the case of a negative divisor and a 0 remainder
among my test cases for the mod function.

Thanks for noticing and fixing the problem.

Although Chouser's version is slightly more compact than Pratley's, I
wonder if a multiplication followed by a single comparison to zero is
a significantly more or less expensive operation than several
comparisons to zero?  My instinct is that multiplication is more
expensive, but I haven't had a chance to really check.

--~--~---------~--~----~------------~-------~--~----~
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