From: Todd Benson Date: 2007-11-19T11:28:39+09:00 Subject: Re: Open-ended ranges? On Nov 18, 2007 8:10 PM, Konrad Meyer wrote: > > irb(main):001:0> 0..(1.0/0) > => 0..Infinity > > HTH, > > -- > Konrad Meyer http://konrad.sobertillnoon.com/ Right, (0..(1.0/0)).each { |o| puts "my_range includes " << o.to_s } It's not indeterminate, it's a definite infinity (within the computers' capabilities, of course). There's a difference. I suppose if you use a check within the loop, that might help the use case, but it still screams of language infidelity. Of course, I'm just assuming the OP wants 1 to some undetermined number as an object (a duck) that will quack yes at being asked if it's a Range. I'm still trying to figure out why you would want a Range object -- which, by usual definition -- is a _not_ open-ended, have an infinite side. Todd