No need to apologize. Tangents can be fun.
I don't dislike the answer - I was just curious about the change. But
now I'm wondering about David's earlier statement that under 1.9,
('!'..'~').to_a works 'correctly'. Does this mean that Range.each has
even more special cases for Strings? That would be unfortunate. It
seems cleaner if Range could use an alternate method (#advance ?)
which would be an alias for #succ in class Object, but would be
overridden by String and other classes where x.succ doesn't always
compare greater than x.
-Adam
···
On 7/3/08, Robert Dober <robert.dober@gmail.com> wrote:
Adam my apologies, instead of logic nitpicking, which was fun of
course, I could have provided an answer to the original question too
;).
But you will not like it