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 instantiating a class doing a role with a private 'my'-scoped attribute in Rakudo #2393

Closed
p6rt opened this issue Mar 23, 2011 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 23, 2011

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

Searchable as RT86880$

@p6rt
Copy link
Author

p6rt commented Mar 23, 2011

From @masak

<colomon> rakudo​: role Breakable { my $!broken = Bool​::False; }; class
Frobnitz does Breakable {}; say Frobnitz.new()
<p6eval> rakudo d5ccf9​: OUTPUT«===SORRY!===␤Null PMC access in get_attr_str()␤»
* masak submits rakudobug
<colomon> masak++
<masak> rakudo​: class Frobnitz {}; say Frobnitz.new().broken
<p6eval> rakudo d5ccf9​: OUTPUT«Method 'broken' not found for invocant
of class 'Frobnitz' [...]

@p6rt
Copy link
Author

p6rt commented May 28, 2012

From @coke

On Wed Mar 23 15​:17​:03 2011, masak wrote​:

<colomon> rakudo​: role Breakable { my $!broken = Bool​::False; }; class
Frobnitz does Breakable {}; say Frobnitz.new()
<p6eval> rakudo d5ccf9​: OUTPUT«===SORRY!===␤Null PMC access in
get_attr_str()␤»
* masak submits rakudobug
<colomon> masak++
<masak> rakudo​: class Frobnitz {}; say Frobnitz.new().broken
<p6eval> rakudo d5ccf9​: OUTPUT«Method 'broken' not found for invocant
of class 'Frobnitz' [...]

Behavior changed​:

role Breakable { my $!broken = Bool​::False; }; class Frobnitz does Breakable {}; say
Frobnitz.new()
Cannot use ! twigil on my variable

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented May 28, 2012

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

@p6rt
Copy link
Author

p6rt commented Nov 14, 2013

From @coke

On Sun May 27 20​:41​:04 2012, coke wrote​:

On Wed Mar 23 15​:17​:03 2011, masak wrote​:

<colomon> rakudo​: role Breakable { my $!broken = Bool​::False; };
class
Frobnitz does Breakable {}; say Frobnitz.new()
<p6eval> rakudo d5ccf9​: OUTPUT«===SORRY!===␤Null PMC access in
get_attr_str()␤»
* masak submits rakudobug
<colomon> masak++
<masak> rakudo​: class Frobnitz {}; say Frobnitz.new().broken
<p6eval> rakudo d5ccf9​: OUTPUT«Method 'broken' not found for invocant
of class 'Frobnitz' [...]

Behavior changed​:

role Breakable { my $!broken = Bool​::False; }; class Frobnitz does
Breakable {}; say
Frobnitz.new()
Cannot use ! twigil on my variable

Test added to S32-exceptions/misc.t

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Nov 14, 2013

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

@p6rt p6rt closed this as completed Nov 14, 2013
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant