Skip to content
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

Range + detached method + map with &sub = "Cannot find method 'count' on object of type NQPMu" #6356

Closed
p6rt opened this issue Jun 22, 2017 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jun 22, 2017

Migrated from rt.perl.org#131623 (status was 'resolved')

Searchable as RT131623$

@p6rt
Copy link
Author

p6rt commented Jun 22, 2017

From @zoffixznet

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␤»

@p6rt
Copy link
Author

p6rt commented Mar 11, 2018

From @dogbert17

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 rakudo/rakudo@f3efe5e

@p6rt
Copy link
Author

p6rt commented Mar 11, 2018

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 8, 2018

From @AlexDaniel

A test for this issue was already added in rakudo/rakudo@f3efe5e6b4a9ee5#diff-2aaee6bee3c5525182362ffdcbea1f2cR14

Closing.

On 2018-03-10 16​:40​:40, jan-olof.hendig@​bredband.net wrote​:

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
rakudo/rakudo@f3efe5e

@p6rt
Copy link
Author

p6rt commented Apr 8, 2018

@AlexDaniel - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant