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 accessing a variable in a class package through its long name in Rakudo #1694

Closed
p6rt opened this issue Apr 16, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Apr 16, 2010

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

Searchable as RT74412$

@p6rt
Copy link
Author

p6rt commented Apr 16, 2010

From @masak

<masak> alpha​: class A { my $b; method c { $A​::b = 5; say $A​::b } }; A.new.c
<p6eval> alpha 30e0ed​: OUTPUT«5␤»
<masak> rakudo​: class A { my $b; method c { $A​::b = 5; say $A​::b } }; A.new.c
<p6eval> rakudo 78faa0​: OUTPUT«Null PMC access in getprop() [...]
* masak submits rakuodbug

I'm no longer sure that this syntax will actually give me access to
the variable, but even if it doesn't the error shouldn't be a Null PMC
access.

@p6rt
Copy link
Author

p6rt commented Aug 12, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 8, 2011

From @coke

On Fri Apr 16 01​:26​:52 2010, masak wrote​:

<masak> alpha​: class A { my $b; method c { $A​::b = 5; say $A​::b } };
A.new.c
<p6eval> alpha 30e0ed​: OUTPUT«5␤»
<masak> rakudo​: class A { my $b; method c { $A​::b = 5; say $A​::b } };
A.new.c
<p6eval> rakudo 78faa0​: OUTPUT«Null PMC access in getprop() [...]
* masak submits rakuodbug

I'm no longer sure that this syntax will actually give me access to
the variable, but even if it doesn't the error shouldn't be a Null PMC
access.

16​:04 < [Coke]> rakudo​: class A { my $b; method c { $A​::b = 5; say $A​::b
} };
  A.new.c
16​:04 <+p6eval> rakudo 88c5a5​: OUTPUT«5␤»

Closable with tests.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 15, 2012

From @bbkr

Test in​:

Raku/roast@0577148ded

@p6rt
Copy link
Author

p6rt commented Jul 15, 2012

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