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 on smartmatch inside method in Rakudo #609

Closed
p6rt opened this issue Jan 11, 2009 · 5 comments
Closed

Null PMC access on smartmatch inside method in Rakudo #609

p6rt opened this issue Jan 11, 2009 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jan 11, 2009

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

Searchable as RT62196$

@p6rt
Copy link
Author

p6rt commented Jan 11, 2009

From @masak

<masak> rakudo​: class A { method foo { say "" ~~ * } }; A.new.foo
<p6eval> rakudo 35420​: OUTPUT«Null PMC access in find_method() [...]
* masak reports rakudobug
<jnthn> masak​: Is that dependent on it being in a class?
<masak> jnthn​: yes.
<jnthn> rakudo​: say "" ~~ *
<masak> rakudo​: sub f { say "" ~~ * }; f
<p6eval> rakudo 35420​: OUTPUT«1␤»
<p6eval> rakudo 35420​: OUTPUT«1␤»

@p6rt
Copy link
Author

p6rt commented Feb 13, 2009

From @jnthn

On Sun Jan 11 09​:42​:35 2009, masak wrote​:

<masak> rakudo​: class A { method foo { say "" ~~ * } }; A.new.foo
<p6eval> rakudo 35420​: OUTPUT«Null PMC access in find_method() [...]
* masak reports rakudobug
<jnthn> masak​: Is that dependent on it being in a class?
<masak> jnthn​: yes.
<jnthn> rakudo​: say "" ~~ *
<masak> rakudo​: sub f { say "" ~~ * }; f
<p6eval> rakudo 35420​: OUTPUT«1␤»
<p6eval> rakudo 35420​: OUTPUT«1␤»

Tried this with current Rakudo and​:

class A { method foo { say "" ~~ * } }; A.new.foo
1

So, assigning to moritz++ for tests. :-)

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Feb 13, 2009

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

@p6rt
Copy link
Author

p6rt commented Feb 13, 2009

From @moritz

Test added to smartmatch.t

@p6rt
Copy link
Author

p6rt commented Feb 13, 2009

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

@p6rt p6rt closed this as completed Feb 13, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant