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

Null PMC access when hitting 'last' in code block in regex in loop in Rakudo #3007

Closed
p6rt opened this issue Dec 26, 2012 · 4 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Dec 26, 2012

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

Searchable as RT116204$

@p6rt
Copy link
Author

p6rt commented Dec 26, 2012

From @masak

<masak> r​: repeat while False { "foo" ~~ / 'f' { say "got here" } 'o'
{ last } / }; say "after the loop"
<p6eval> rakudo c8de2e​: OUTPUT«got here␤Null PMC access in
find_method('sink') [...]
* masak submits rakudobug
<masak> Merry Null PMC Christmas, everybody.

@p6rt
Copy link
Author

p6rt commented Oct 8, 2014

From @usev6

There is no longer a Null PMC access error when hitting 'last' in code block in regex in loop​:

$ perl6-m -e 'repeat while False { "foo" ~~ / "f" { say "got here" } "o" { last } / }; say "after the loop"'
got here
after the loop

$ perl6-p -e 'repeat while False { "foo" ~~ / "f" { say "got here" } "o" { last } / }; say "after the loop"'
got here
after the loop

$ perl6-j -e 'repeat while False { "foo" ~~ / "f" { say "got here" } "o" { last } / }; say "after the loop"'
got here
after the loop

I added a test to S04-statements/last.t with the following commit​: Raku/roast@95bf03a714

@p6rt
Copy link
Author

p6rt commented Oct 8, 2014

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

@p6rt p6rt closed this as completed Oct 8, 2014
@p6rt
Copy link
Author

p6rt commented Oct 8, 2014

@usev6 - 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