[perl #128758] Reduce with numeric ops does not numify things if only one arg is passed ([*] set(1,2,3))
[email protected] ("Jan-Olof Hendig via RT") Mon, 26 Mar 2018 09:20:57 -0700
| Newsgroups | perl.perl6.compiler |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 25 Mar 2018 08:43:30 -0700, [email protected] wrote: > On Thu, 29 Jun 2017 12:50:43 -0700, [email protected] wrote: > > It looks like this bug hasn't been *completely* fixed: > > > > dd &infix:<+>( "2" ); # 2 > > dd &infix:<*>( "2" ); # 2 > > > > dd [*] "2"; # 2 > > dd [+] "2"; # 2 > > > > dd reduce &infix:<*>, "2"; # 2 > > dd reduce &infix:<+>, "2"; # "2" > > > > i.e. it doesn't work when using the + operator with the functional > > form of reduce, even though it works with other numeric operators and > > with the meta-operator form. > > Last example fixed with commit (2018-01-13) > https://github.com/rakudo/rakudo/commit/0af3f4d1c37dddb8c6362c2eafb74d849c5d9ded Test added with commit https://github.com/perl6/roast/commit/6b0fcc2b91909361e7f0fd07df4d9f6002aa889d