Reposting this since it failed the spamblock - sorry, usenet people. (Does the spam filter support whitelists, btw? I keep getting hit for 'forged yahoo email') Martin DeMello <martindemello / yahoo.com> wrote: > ahoward <ahoward / fsl.noaa.gov> wrote: >> >> it also seems to make perfect sense for Float Ranges to have size Infinity? >> this would suprise no one. > > It'd surprise the heck out of me. When I've used float ranges, it's > usually been for Range#include?, and as a convenient way to carry the > two endpoints of a segment around. I'd definitely expect size to return > last-first. > > What's iffy is #each for float ranges. That one is IMO 'surprising' no > matter what it does. > > Also, speaking of Ranges of Floats, I think the following is a bug: > > zem@timbit:~$ ruby -e "(1.0..6.5).step(1.5) {|i| p i}" > 1.0 > 2.5 > 4.0 > 5.5 > zem@timbit:~$ ruby -e "(1.0..6.5).step(0.5) {|i| p i}" > -e:1:in `step': step can't be <= 0 (ArgumentError) > from -e:1 > > martin