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
^@list returns ridicously long lists #431
Comments
From @moritzRakudo r33209:
Moritz |
From @moritzPart of the problem is also that ^@a returns a List, not a Range. We now have 6 failing tests in t/spec/S03-operators/context-forcers.t (4 |
@moritz - Status changed from 'new' to 'open' |
From @pmichaudCurrently Rakudo is treating ^@list as though it's If [prefix:<^> is] applied to a list, it generates a for ^(3,3) { ... } # (0,0)(0,1)(0,2)(1,0)(1,1)(1,2)(2,0)(2,1)(2,2) So, Rakudo is currently seeing ^@list as following this definition, There's still some ambiguity in how (or if) we should support Thanks, Pm |
From @moritzPatrick R. Michaud wrote:
Yes, wrongly: It counts up first the first index, then the second. I see how the specced makes sense for a List of Ints, but not for any Moritz
|
From @TimToadyOn Wed, Nov 26, 2008 at 08:54:50AM +0100, Moritz Lenz wrote: My guess is that the list overloading will simply vanish into thin air, ^«(3,3) to get the current Parrot meaning, and [X] ^«(3,3) or ^3 X ^3 to get the specced list meaning. But other viewpoints are welcome... Larry |
From @pmichaudOn Wed, Nov 26, 2008 at 06:21:22PM -0800, Larry Wall wrote:
+1 to the idea that ^@list is the same as ^+@list . Now implemented Closing ticket -- thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#60828 (status was 'resolved')
Searchable as RT60828$
The text was updated successfully, but these errors were encountered: