[perl #131699] [LTA] Errors indexing past the end of a List

2017-07-04 Thread Zoffix Znet via RT
On Tue, 04 Jul 2017 07:20:50 -0700, elizabeth wrote: > > Hm. Wouldn't that make behavior of Lists and Arrays different? > > No, because Lists are supposed to be immutable wrt to the number of > elements. Yes, but that doesn't mean the user of the list necessarily knows or has to know how many

Re: [perl #131699] [LTA] Errors indexing past the end of a List

2017-07-04 Thread Elizabeth Mattijsen
> On 4 Jul 2017, at 16:19, Elizabeth Mattijsen wrote: > That said, a List may not always be completely reified already. So > logically, a List may have 100 elements, it could well be that only 42 of > these elements exist already. Which means that the underlying NQP array,

Re: [perl #131699] [LTA] Errors indexing past the end of a List

2017-07-04 Thread Elizabeth Mattijsen via RT
> On 4 Jul 2017, at 16:05, Aleks-Daniel Jakimenko-Aleksejev via RT > wrote: > On 2017-07-04 05:29:20, comdog wrote: >> Accessing a List element beyond the end of the List returns Nil, >> although accessing an element before the beginning returns an out of >> bounds

Re: [perl #131699] [LTA] Errors indexing past the end of a List

2017-07-04 Thread Elizabeth Mattijsen
> On 4 Jul 2017, at 16:05, Aleks-Daniel Jakimenko-Aleksejev via RT > wrote: > On 2017-07-04 05:29:20, comdog wrote: >> Accessing a List element beyond the end of the List returns Nil, >> although accessing an element before the beginning returns an out of >> bounds

[perl #131699] [LTA] Errors indexing past the end of a List

2017-07-04 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Hm. Wouldn't that make behavior of Lists and Arrays different? On 2017-07-04 05:29:20, comdog wrote: > Accessing a List element beyond the end of the List returns Nil, > although accessing an element before the beginning returns an out of > bounds failure. I think there's two things that can be

[perl #131699] [LTA] Errors indexing past the end of a List

2017-07-04 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #131699] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131699 > Accessing a List element beyond the end of the List returns Nil, although accessing an