Thank you, Bronsa!

Sincerely,
  Ru
воскресенье, 4 ноября 2012 г., 14:27:30 UTC+4 пользователь Bronsa написал:
>
> Number prefixed by 0 are read by the clojure reader as octals.
> So the decimal 8 is 010
>
> 2012/11/4 ru <sor...@oogis.ru <javascript:>>
>
>> ru@ru-maclin:~/ProtegeClojureOMTabs-1.5/lib_ext$ java -jar 
>> clojure-1.4.0.jar 
>> Clojure 1.4.0
>> user=> (read-string "07")
>> 7
>> user=> (read-string "09")
>> NumberFormatException Invalid number: 09 
>>  clojure.lang.LispReader.readNumber (LispReader.java:253)
>> user=> (read-string "08")
>> NumberFormatException Invalid number: 08 
>>  clojure.lang.LispReader.readNumber (LispReader.java:253)
>> user=> (read-string "06")
>> 6
>> user=> (read-string "05")
>> 5
>> user=> (read-string "04")
>> 4
>> user=> (read-string "03")
>> 3
>> user=> (read-string "02")
>> 2
>> user=> (read-string "01")
>> 1
>> user=> (read-string "00")
>> 0
>>
>> Sincerely,
>>    Ru
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com<javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> 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