The numeric coercion functions only impact interop starting in 1.3.0.  If you 
want a concrete Integer, use (Integer. 0); if you want a float, use (Float. 
6.7).

Cheers,

- Chas

On Feb 1, 2011, at 7:12 PM, Jules wrote:

> Clojure 1.2.0
> user=> (type 0)
> java.lang.Integer
> user=> (type (int 0))
> java.lang.Integer
> user=>
> 
> but
> 
> Clojure 1.3.0-alpha4
> user=> (type 0)
> java.lang.Long
> user=> (type (int 0))
> java.lang.Long
> 
> apologies if this is a known issue ...
> 
> regards
> 
> 
> Jules
> 
> -- 
> 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

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