Hi everyone,

I've noticed some unexpected behaviour with the unchecked-int function
- I think it's a bug, but I'm not entirely sure I've correctly
understood the purpose of the function.

(type (unchecked-int 0xFFFF0000)) shows long instead of int. This
isn't what I would have expected, either from the name, documentation
or source code.
Interestingly, (type (int (unchecked-int 0xFFFF0000))) also shows
java.lang.long instead of int.
Using (unchecked-int 0xFFFF0000) as an argument to call a java
function requiring an int causes an IllegalArgumentException.

In addition, the unchecked casting functions do not currently appear
on the clojure.org documentation cheat sheet.

Thanks,

Joel

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