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
[**] has the wrong associativity in Rakudo #706
Comments
From @masak<moritz_> pugs: say [**] 2, 3, 4 |
From @masakjonthan++ applied bacek++'s patch, so everything's fine now. resolving. |
@masak - Status changed from 'new' to 'resolved' |
From @moritzHi, Carl MXXsak (via RT) wrote:
It turned out that even infix:<**> was erroneously left-associative, Cheers, |
@kyleha - Status changed from 'resolved' to 'open' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S03-operators/reduce-metaop.t commit cdb7a947cead6a237dd2ce44551bcc555bb38168 [t/spec] label test for RT #63306 Inline Patchdiff --git a/t/spec/S03-operators/reduce-metaop.t b/t/spec/S03-operators/reduce-metaop.t
index 7e5a61e..adae355 100644
--- a/t/spec/S03-operators/reduce-metaop.t
+++ b/t/spec/S03-operators/reduce-metaop.t
@@ -25,7 +25,7 @@ L<"http://groups.google.de/group/perl.perl6.language/msg/bd9eb275d5da2eda">
is(([*] 1,2,3), (1*2*3), "[*] works");
is(([-] 1,2,3), (1-2-3), "[-] works");
is(([/] 12,4,3), (12/4/3), "[/] works");
- #?rakudo todo 'associativity in reduce-metaop'
+ #?rakudo todo 'associativity in reduce-metaop (RT #63306)'
is(([**] 2,2,3), (2**2**3), "[**] works");
is(([%] 13,7,4), (13%7%4), "[%] works");
|
From ben@petering.netThis code: say [**] 4,3,2 produces: 4096 But according to S03, ** is right associative, and (I think) the 262144 (The next line in S03/"Reduction operators" even has this exact [**] 4, 3, 2; # 4**3**2 = 4**(3**2) = 262144 Thanks to JimmyZ in #perl6 - submitted on his behalf as RT doesn't |
From @jnthnOn Sun Aug 02 00:07:25 2009, missingthepoint wrote:
This works now; assigning to moritz++ for tests. Jonathan |
1 similar comment
From @jnthnOn Sun Aug 02 00:07:25 2009, missingthepoint wrote:
This works now; assigning to moritz++ for tests. Jonathan |
From @moritzA test can be found in S03-metaops/reduce.t. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#63306 (status was 'resolved')
Searchable as RT63306$
The text was updated successfully, but these errors were encountered: