On Fri, Aug 14, 2009 at 6:28 AM, David Powell<djpow...@djpowell.net> wrote:
>
>
>> user=> (.getClass (+ 1 Integer/MAX_VALUE))
>> java.lang.Long
>
> Also,
>
> user=> (def i (Integer/MAX_VALUE))
>
> user=> (class (+ 1 i))
> java.lang.Long
>
> user=> (class (inc i))
> java.math.BigInteger
>
> I'd expect inc to overflow to a Long rather than a BigInteger.
>

Issue/patch welcome for this.

Rich

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