From: Dave Thomas Date: 2001-01-31T05:51:18+09:00 Subject: [ruby-talk:10138] Re: Array's undocumented features Mathieu Bouchard writes: > In particular, none of them define "out of range", in our sense, we meant greater than the index of the highest element currently in the array. > someArray[2..1] #=> [] YOW! > someArray[2..0] #=> nil ok I think this is equivalent to someArray[3,0] #=> [] someArray[3,-1] #=> nil That is, there's a different between a zero length slice and an invalid slice. Regards Dave