From: Michal Suchanek Date: 2008-01-02T18:40:17+09:00 Subject: Re: RCR allow indexing last n items On 02/01/2008, David A. Black wrote: > Hi -- > > On Wed, 2 Jan 2008, Michal Suchanek wrote: > > > On 01/01/2008, David A. Black wrote: > > > >> > >> What I mean is: if str[-10] is nil, then I'm not sure about there > >> being any x, such that str[-10..x] is a string. > > > > If str[9] returns nil, why does not str[0...10] return nil then? Isn't > > it the same argument? > > Not if the rule is that the beginning of the range has to be an > (existing) index into the string. That's really the crux of it, I > think. And this whole discussion is about changing the rule to a more sensible one. So that does not apply as an argument here :P Thanks Michal