Clojure 1.3 Boxing of shorts and bytes

28 views
Skip to first unread message

Rasmus Svensson

unread,
Jul 15, 2011, 3:24:51 PM7/15/11
to cloju...@googlegroups.com
The Enhanced Primitive Support page says "all long-or-smaller integers
are boxed as Long" but:

(map class [(long 1) (int 1) (short 1) (byte 1)])
=> (java.lang.Long java.lang.Long java.lang.Short java.lang.Byte)

Shouldn't this return Long in all cases? (This is 1.3.0-alpha8.)

// Rasmus

Rasmus Svensson

unread,
Jul 15, 2011, 3:26:18 PM7/15/11
to cloju...@googlegroups.com

Sebastián Galkin

unread,
Jul 15, 2011, 3:35:35 PM7/15/11
to cloju...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages