> In mail "Re: (0..3) == (0...4) returning false?" > Massimiliano Mirra <list / NOSPAMchromatic-harp.com> wrote: >> > |Is there a reason for two ranges holding the same extension but >> > |initialized respectively with `..' and `...' to be considered >> > |different in a comparison? >> > >> > Although they have same range, they are still different. >> >> In what? > (0..3) === 3.2 # false > (0...4) === 3.2 # true and, of course, the differentiating predicate: > (0..3).exclude_end? #=> false > (0...4).exclude_end? #=> true best, raja