At Sat, 5 Jan 2002 09:33:40 +0900,
Chad Fowler <chadfowler / chadfowler.com> wrote:
> I just observed the following behavioral differences between ruby 1.6.6 
> and the latest 1.7.2:
> 
> ruby -ve 'puts ((1..5)).include?(0))'
> ruby 1.7.2 (2001-12-31) [i686-linux]
> -e:1: warning: puts (...) interpreted as grouped expression
> true

It was just typo.


Index: range.c =================================================================== RCS file: /cvs/ruby/src/ruby/range.c,v retrieving revision 1.27 diff -u -2 -p -r1.27 range.c --- range.c 2001/11/08 09:21:59 1.27 +++ range.c 2002/01/05 04:16:00 @@ -539,5 +539,5 @@ range_member(range, val) end = rb_ivar_get(range, id_end); - if (r_lt(beg, val)) return Qtrue; + if (r_gt(beg, val)) return Qfalse; if (EXCL(range)) { if (r_lt(val, end)) return Qtrue;
-- Nobu Nakada