From: Andy Cooper Date: 2009-01-08T02:13:26+09:00 Subject: Re: Puzzling behaviour with range... > Sebastian Hungerecker wrote: > > > > a) Range is not a numeric > > b) Which difference do you mean? > > > > HTH, > > Sebastian > > Thanks for the reply! > > Of course, in typing this out, I see why it's set up the way it is, > since we might want to do something like this... > > class SomeObj > def lastOne() > 17 > end > end > blah = SomeObj::new > a = 1..blah.lastOne > > Thanks for setting me on the path! (and letting me babble on...) Well it all comes down to the principle of least surprise in the end, and I think that it is properly set up to fit within the principle. Even though none of us wants to put parenthesis ... anywere really. Andy Cooper.