Re: Clojure 1.0

2009-05-04 Thread Olov Lassus
Congratulations! Keep up the good work, /Olov --~--~-~--~~~---~--~~ 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

Re: why two list comprehensions are different?

2009-01-03 Thread Olov Lassus
> The 'let' macro already has a similar check. > > Attached is a patch that adds even-ness and related assertions to a > bunch of core macros. That's better - I applied the patch and it's working as expected here. /Olov --~--~-~--~~~---~--~~ You received this mes

Re: why two list comprehensions are different?

2009-01-03 Thread Olov Lassus
The for macro is only valid for a vector of even size. Throwing an exception when this isn't the case would have helped the original poster: user=> (take 100 (for [x (range 1000) y (range 1000) (< x y)][x y])) java.lang.IllegalArgumentException: for got a malformed vector argument, more details

Re: Patch: Large negative range overflows

2009-01-02 Thread Olov Lassus
Issue 29 created with patch attached: http://code.google.com/p/clojure/issues/detail?id=29 On Dec 14 2008, 1:29 am, Olov Lassus wrote: > Hi, > Here's another patch from me: > > The clojure.lang.Range type is implemented with integer type start and   > end indices. The cor

Re: Patch: Detect overflow in IntegerOps.Negate

2009-01-02 Thread Olov Lassus
Issue 28 created with patch attached: http://code.google.com/p/clojure/issues/detail?id=28 On Dec 14 2008, 12:42 am, Olov Lassus wrote: > Hi, > thanks for Clojure! Here's my first contribution (CA filled out and   > will arrive next week): > > Negating Integer.MIN_VALUE

Patch: Large negative range overflows

2008-12-13 Thread Olov Lassus
7483649) I also made the range function slightly less conservative < vs <= wise. This shouldn't affect correctness but (range 0 2147483647) will now return a Range (after patch) instead of a LazyCons (before). /Olov Lassus --~--~-~--~~~---~--~~ You re

Patch: Detect overflow in IntegerOps.Negate

2008-12-13 Thread Olov Lassus
83648) 2147483647 /Olov Lassus --~--~-~--~~~---~--~~ 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