From: Yukihiro Matsumoto Date: 2009-08-06T01:12:18+09:00 Subject: Re: Bizarre Range behavior Hi, In message "Re: Bizarre Range behavior" on Thu, 6 Aug 2009 00:35:41 +0900, Rob Biedenharn writes: |I'd actually prefer *less* magic here. (And I hope that your second |example with "2"..."20" wouldn't include "20" since the range excludes |its end.) May bad for the error in the example. It wouldn't include "20" in the actual code. |The surprising aspect is that the Range#to_a can give an array that |has just the #begin. String#upto perhaps needs more magic to know that |#succ will eventually work ("9".upto("10") as well as |"cat".upto("bird")) We have to define the "magic" behavior first, but I love magic if we can make specific definition. matz.