New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slicing a string with inifinite ranges gives LTA error message #2695
Comments
From @moritz10:23 < timotimo> r: say "foo"[1..*] |
From @pmichaudOn Tue Apr 03 01:24:47 2012, moritz wrote:
Now fixed in 1bbf9eb, needs spectests to close ticket. Thanks! Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzOn 04/03/2012 06:44 PM, Patrick R. Michaud via RT wrote:
Now we have "foo"[2] fail(), but "foo"[2..*] returns the empty Parcel. Cheers, |
From @pmichaudOn Tue, Apr 03, 2012 at 09:22:11PM +0200, Moritz Lenz wrote:
Since "foo" acts like a list of one element, I suspect that .[2..*] my @array = "foo"; If that's wrong, we need better spectests to get the correct Pm |
From @moritzOn 04/03/2012 11:16 PM, Patrick R. Michaud wrote:
My point is that it currently doesn't really. Compare: say "foo".list.[2] # Nil with say "foo".[2] # Index out of range. Is: 2, should be in 0..0 which is why I'm complaining about inconsistencies.
No, first we need agreement on what the right behavior is. Thinking |
From @cokeOn Tue Apr 03 22:38:13 2012, moritz wrote:
Looks like there is already a spec test in S02-types/lists.t Removing testneeded tag, but it sounds like we need to answer the question about what the right behavior is before we can keep that test and close the ticket. -- |
From @cokeOn Tue Jan 21 17:15:14 2014, coke wrote:
16:56 < TimToady> [Coke]: I guess in the absence of strong arguments to the With that, closing ticket. -- |
@coke - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#112216 (status was 'resolved')
Searchable as RT112216$
The text was updated successfully, but these errors were encountered: