yarv-dev-en:128
From: SASADA Koichi <ko1 atdot.net>
Date: Wed, 21 Jun 2006 16:33:55 +0900
Subject: [yarv-dev-en:128] Re: open> Range bug.
Hi, John Turner wrote: > There's a fairly small bug in range.c that means that a Float step size > of between 0 and 1 raises an erroneous exception: > > irb(main):007:0> RUBY_VERSION > => "2.0.0" > irb(main):008:0> (0.0..1.0).step(0.1){|i| puts i} > ArgumentError: step can't be 0 It's seems specification. Range#step only accept Integer. -- // SASADA Koichi at atdot dot net -- ML: yarv-dev-en quickml.atdot.net Info: http://www.atdot.net/~ko1/quickml
127 2006-06-21 16:28 [xennocide yahoo.com ] open> Range bug. -> 128 2006-06-21 16:33 ┗[ko1 atdot.net ] 144 2006-07-14 20:49 ┗[xennocide yahoo.com ]