On Tue, Mar 23, 2010 at 8:40 AM, Per Vognsen <per.vogn...@gmail.com> wrote: > Sorry, I didn't put that right. 0xFF would only be -1 as a signed > byte. What I'm saying is that the interaction between the type system > of integers and the reader's hexadecimal notation is pretty surprising > to me. In particular, (byte 0xFF) throws an error.
What version? It works here: Clojure 1.1.0 user=> (byte 0xff) -1 In fact, it seems that (byte) doesn't check the range at all: user=> (byte -129) 127 -- Mark J. Reed <markjr...@gmail.com> -- 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 To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.