From: matz@... (Yukihiro Matsumoto) Date: 2004-05-02T21:08:27+09:00 Subject: Re: Strange behaviour of Strings in Range Hi, In message "Strange behaviour of Strings in Range" on 04/05/01, Michael Neumann writes: | r1 = ("\000" .. "\377") # all characters? | | r1.to_a | # => ..... "6", "7", "8", "9"] | | r1.to_a.size | # => 58 | |Hm, I guess this is because of "9".succ gives "10", and "10" has a size |of two. | |But why does "9".succ results in "10"? It's caused by "succ" magic. Let me think about either subtracting magic, or adding more magic. matz.