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 assigning to a variable in a package that doesn't exist in Rakudo #2217

Closed
p6rt opened this issue Oct 7, 2010 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Oct 7, 2010

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

Searchable as RT78280$

@p6rt
Copy link
Author

p6rt commented Oct 7, 2010

From @masak

<tylercurtis> rakudo​: my $b; -> $_ is rw = $OUTER​::_ { $_ = 5; $b =
{.say}}(); .say; $_ = 42; $b();
<p6eval> rakudo 377615​: OUTPUT«Null PMC access in getprop() [...]
* masak submits rakudobug for tylercurtis Null PMC access
<masak> rakudo​: -> $_ is rw = $OUTER​::_ { $_ = 5 }()
<p6eval> rakudo 377615​: OUTPUT«Null PMC access in getprop() [...]
<masak> rakudo​: -> $_ is rw = $FOO​::a { $_ = 5 }()
<p6eval> rakudo 377615​: OUTPUT«Null PMC access in getprop() [...]
<masak> hihihi

@p6rt
Copy link
Author

p6rt commented Oct 7, 2010

From @masak

<jnthn> rakudo​: $FOO​::a = 42
<p6eval> rakudo 377615​: OUTPUT«Null PMC access in getprop() [...]
* masak changes the ticket

@p6rt
Copy link
Author

p6rt commented Oct 7, 2010

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

@p6rt
Copy link
Author

p6rt commented Oct 8, 2011

From @coke

On Thu Oct 07 14​:46​:24 2010, masak wrote​:

<tylercurtis> rakudo​: my $b; -> $_ is rw = $OUTER​::_ { $_ = 5; $b =
{.say}}(); .say; $_ = 42; $b();
<p6eval> rakudo 377615​: OUTPUT�Null PMC access in getprop() [...]
* masak submits rakudobug for tylercurtis Null PMC access
<masak> rakudo​: -> $_ is rw = $OUTER​::_ { $_ = 5 }()
<p6eval> rakudo 377615​: OUTPUT�Null PMC access in getprop() [...]
<masak> rakudo​: -> $_ is rw = $FOO​::a { $_ = 5 }()
<p6eval> rakudo 377615​: OUTPUT�Null PMC access in getprop() [...]
<masak> hihihi

Fixed​:

17​:16 < [Coke]> rakudo​: my $b; -> $_ is rw = $OUTER​::_ { $_ = 5; $b =
  {.say}}(); .say; $_ = 42; $b();
17​:16 <+p6eval> rakudo 33f1cf​: OUTPUT«Any()␤5␤»
17​:16 < [Coke]> rakudo​: -> $_ is rw = $OUTER​::_ { $_ = 5 }()
17​:16 <+p6eval> rakudo 33f1cf​: ( no output )
17​:16 < [Coke]> rakudo​: -> $_ is rw = $FOO​::a { $_ = 5 }()
17​:16 <+p6eval> rakudo 33f1cf​: ( no output )
17​:16 < [Coke]> rakudo​: $FOO​::a = 42
17​:16 <+p6eval> rakudo 33f1cf​: ( no output )

Closable with tests.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented May 15, 2015

From @jdv

Closing on account of the test cases all being invalid now. See below.

[jdv@​wieldy ~]$ perl6 -e '-> $_ is rw = $OUTER​::_ { $_ = 5 }()'
===SORRY!=== Error while compiling -e
Cannot use 'is rw' on an optional parameter
at -e​:1
[jdv@​wieldy ~]$

@p6rt
Copy link
Author

p6rt commented May 15, 2015

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