On Mar 15, 2009, at 4:53 PM, Aaron Brooks wrote:
> > Rather than going to the horrible effort </irony> of looking up to see > if Clojure had support for binary notation, I had a Clojure prompt so > I just tried it and got semi-surprising results: > > user=> #b010001 > java.lang.Exception: No dispatch macro for: b > 4097 > > I'm not surprised that Clojure complains of not knowing what manner of > macro #b is but I was impressed (?) that it still yielded the correct > value. Somewhere, deep in Clojure's little heart, it wants to do other > bases. > Umm, that's not really the correct value. Clojure gave you octal 010001 -> 4097 not binary 010001 -> 17 Sorry, David Sletten --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---