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 trying to initialize a nested class from the constructor of the outer class in Rakudo #1311

Closed
p6rt opened this issue Sep 23, 2009 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Sep 23, 2009

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

Searchable as RT69316$

@p6rt
Copy link
Author

p6rt commented Sep 23, 2009

From @masak

<masak> rakudo​: class Forest { class Frog { method speak { say "ribbit
ribbit" } }; has Frog $.frog; method new() { my Frog $frog .= new;
self.bless(*, :$frog) } }; Forest.new
<p6eval> rakudo 0eaf62​: OUTPUT«Null PMC access in type()␤in method
Forest​::new [...]
* masak submits frog-bug
<moritz_> masak​: nested classes are documented to be not working on
the status page (just FYI)
<masak> that's ok.
<masak> they also shouldn't be emitting Null PMC access errors. :)
<moritz_> aye

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

From @coke

On Wed Sep 23 04​:39​:28 2009, masak wrote​:

<masak> rakudo​: class Forest { class Frog { method speak { say "ribbit
ribbit" } }; has Frog $.frog; method new() { my Frog $frog .= new;
self.bless(*, :$frog) } }; Forest.new
<p6eval> rakudo 0eaf62​: OUTPUT«Null PMC access in type()␤in method
Forest​::new [...]
* masak submits frog-bug
<moritz_> masak​: nested classes are documented to be not working on
the status page (just FYI)
<masak> that's ok.
<masak> they also shouldn't be emitting Null PMC access errors. :)
<moritz_> aye

22​:56 < [Coke]> rakudo​: class Forest { class Frog { method speak { say "ribbit
  ribbit" } }; has Frog $.frog; method new() { my Frog $frog .=
  new; self.bless(*, :$frog) } }; Forest.new.say
22​:56 <+p6eval> rakudo 2808a5​: OUTPUT«Forest()<0x7b1c360>␤»

... This looks like it works now?

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

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

@p6rt
Copy link
Author

p6rt commented Oct 11, 2011

From @coke

On Tue Jul 27 19​:57​:29 2010, coke wrote​:

On Wed Sep 23 04​:39​:28 2009, masak wrote​:

<masak> rakudo​: class Forest { class Frog { method speak { say
"ribbit
ribbit" } }; has Frog $.frog; method new() { my Frog $frog .= new;
self.bless(*, :$frog) } }; Forest.new
<p6eval> rakudo 0eaf62​: OUTPUT«Null PMC access in type()␤in method
Forest​::new [...]
* masak submits frog-bug
<moritz_> masak​: nested classes are documented to be not working on
the status page (just FYI)
<masak> that's ok.
<masak> they also shouldn't be emitting Null PMC access errors. :)
<moritz_> aye

22​:56 < [Coke]> rakudo​: class Forest { class Frog { method speak { say
"ribbit
ribbit" } }; has Frog $.frog; method new() { my Frog
$frog .=
new; self.bless(*, :$frog) } }; Forest.new.say
22​:56 <+p6eval> rakudo 2808a5​: OUTPUT«Forest()<0x7b1c360>␤»

... This looks like it works now?

Still. Closable with tests.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 8, 2012

From @moritz

tested in S12-class/lexical.t.

@p6rt
Copy link
Author

p6rt commented Jan 8, 2012

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