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
Scoping issue in list comprehension with gather/take-rw in it in Rakudo #2685
Comments
From @masak<TimToady> masak: two bug reports for the price of one; rakudo and TimToady's gist, reproduced here: use Test; { |
From @diakopterOn Sat Mar 24 14:28:16 2012, masak wrote:
I'm pretty sure this one works now (in both niecza and rakudo?). |
The RT System itself - Status changed from 'new' to 'open' |
From @lizmat[15:12:04] <grondilu> so List.permutations and List.combinations are broken. Seems due to List[@a] not working. Is someone looking at that? |
From @jnthnOn Sat Mar 24 14:28:16 2012, masak wrote:
Fixed, and added this (with one minor update for list flattening changes) as a test to S04-statements/gather.t. |
@jnthn - Status changed from 'open' to 'resolved' |
From @zhuomingliangHello, It seems it is not fixed, because the following patch didn't work. Inline Patchdiff --git a/src/core/List.pm b/src/core/List.pm
index 72fcbd7..776e8dd 100644
--- a/src/core/List.pm
+++ b/src/core/List.pm
@@ -878,8 +878,7 @@ my class List does Iterable does Positional { # declared in BOOTSTRAP
proto method permutations(|) is nodal {*}
multi method permutations() is nodal {
- # need block on Moar because of RT#121830
- permutations(self.elems).map: { self[@$_] }
+ permutations(self.elems).map: self[@$_]
}
method join($separator = '') is nodal {
(END) |
Migrated from rt.perl.org#111962 (status was 'resolved')
Searchable as RT111962$
The text was updated successfully, but these errors were encountered: