Skip Menu |
Report information
Id: 131623
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: testneeded
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Range + detached method + map with &sub = "Cannot find method 'count' on object of type NQPMu"
Download (untitled) / with headers
text/plain 387b
A WhateverCode detached map or a &sub undetached map works fine: m: ^2 .map: *.say rakudo-moar 86e7b2: OUTPUT: «0␤1␤» m: (^2).map: &say rakudo-moar 86e7b2: OUTPUT: «0␤1␤» But explodes if you try to both detache and use the &sub map: m: ^2 .map: &say rakudo-moar 86e7b2: OUTPUT: «===SORRY!===␤Cannot find method 'count' on object of type NQPMu␤»
Download (untitled) / with headers
text/plain 566b
On Thu, 22 Jun 2017 05:25:08 -0700, cpan@zoffix.com wrote: Show quoted text
> A WhateverCode detached map or a &sub undetached map works fine: > m: ^2 .map: *.say > rakudo-moar 86e7b2: OUTPUT: «0␤1␤» > m: (^2).map: &say > rakudo-moar 86e7b2: OUTPUT: «0␤1␤» > > But explodes if you try to both detache and use the &sub map: > m: ^2 .map: &say > rakudo-moar 86e7b2: OUTPUT: «===SORRY!===␤Cannot find method > 'count' on object of type NQPMu␤»
Fixed with commit https://github.com/rakudo/rakudo/commit/f3efe5e6b4a9ee59f71ca11cb90ef78539be45e3
A test for this issue was already added in https://github.com/rakudo/rakudo/commit/f3efe5e6b4a9ee5#diff-2aaee6bee3c5525182362ffdcbea1f2cR14

Closing.

On 2018-03-10 16:40:40, jan-olof.hendig@bredband.net wrote:
Show quoted text
> On Thu, 22 Jun 2017 05:25:08 -0700, cpan@zoffix.com wrote:
> > A WhateverCode detached map or a &sub undetached map works fine:
> > m: ^2 .map: *.say
> > rakudo-moar 86e7b2: OUTPUT: «0␤1␤»
> > m: (^2).map: &say
> > rakudo-moar 86e7b2: OUTPUT: «0␤1␤»
> >
> > But explodes if you try to both detache and use the &sub map:
> > m: ^2 .map: &say
> > rakudo-moar 86e7b2: OUTPUT: «===SORRY!===␤Cannot find method
> > 'count' on object of type NQPMu␤»
>
> Fixed with commit
> https://github.com/rakudo/rakudo/commit/f3efe5e6b4a9ee59f71ca11cb90ef78539be45e3




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org