From: Michel Demazure Date: 2011-11-11T04:00:33+09:00 Subject: [ruby-core:40916] Re: [ruby-trunk - Feature #5607] Inconsistent reaction in Range of String Yes, but if "X < AB" is false, "X" should not be *between* "A" and "AB". _md -----Message d'origine----- De : Alexey Muranov [mailto:muranov@math.univ-toulouse.fr] Envoy�� : jeudi 10 novembre 2011 18:15 �� : ruby-core@ruby-lang.org Objet : [ruby-core:40914] [ruby-trunk - Feature #5607] Inconsistent reaction in Range of String Issue #5607 has been updated by Alexey Muranov. This behavior of range seems consistent with "X"<"AB" # => false in Ruby 1.9.3. ---------------------------------------- Feature #5607: Inconsistent reaction in Range of String http://redmine.ruby-lang.org/issues/5607 Author: Yen-Nan Lin Status: Open Priority: Normal Assignee: Category: Target version: =begin When I tried to access excel file, I found some inconsistent behavior about range of string. ruby-1.9.3-p0 :001 > ("A".."AB").to_a => ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "AA", "AB"] This behavior is as what I thought. ruby-1.9.3-p0 :002 > ("X".."AB").to_a => [] However, I tried to access "X" to "AB", and its reaction is inconsistent with above example. I hope that behavior would be consistent in future release. Thanks! =end -- http://redmine.ruby-lang.org