From: Ron Jeffries Date: 2002-03-09T07:12:55+09:00 Subject: Re: is there any way ... On Fri, 08 Mar 2002 20:48:44 GMT, Tobias Reif wrote: >Ron Jeffries wrote: > >> is there any way we could fix the bug whereby a..b is /longer/ than a...b ? >> >> I sure don't see one, but it is a blight on the face of the earth. > > >Unless I'm missing somehing, this is how it should be: >http://www.rubycentral.com/book/tut_stdtypes.html >=> Ranges >"The two-dot form creates an inclusive range, while the three-dot form >creates a range that excludes the specified high value." > >Or is it that you don't like how it's specified (as opposed to being an >indifference between specification and implementation, a bug) I'm sorry I wasn't clear in my objection. I'd think it was more mnemonic if the longer range used the longer series of dots. The way it is now, 1..3 = 1, 2, 3 and 1...3 = 1, 2 Just a notion ... Ronald E Jeffries http://www.XProgramming.com http://www.objectmentor.com I'm giving the best advice I have. You get to decide whether it's true for you.