Jason,

2011/3/1 Jason Wolfe <ja...@w01fe.com>:
>> But I don't know what the plan is if you really do want truncating
>> arithmetic on longs.
>
> On 1.3 alpha 4:
>
> user=> (+ Long/MAX_VALUE Long/MAX_VALUE)
> ArithmeticException integer overflow
> clojure.lang.Numbers.throwIntOverflow (Numbers.java:1581)
>
> user=> (set! *unchecked-math* true)
> true
>
> user=> (+ Long/MAX_VALUE Long/MAX_VALUE)
> -2
>
> -Jason

I get:

user=> (set! *unchecked-math* true)
java.lang.IllegalStateException: Can't change/establish root binding
of: *unchecked-math* with set


... with latest clojure from git master branch.

Albert

-- 
http://albert.rierol.net

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