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 doing .HOW on attributes in Rakudo #2921

Closed
p6rt opened this issue Oct 15, 2012 · 5 comments
Closed

Null PMC access when doing .HOW on attributes in Rakudo #2921

p6rt opened this issue Oct 15, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Oct 15, 2012

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

Searchable as RT115280$

@p6rt
Copy link
Author

p6rt commented Oct 15, 2012

From @masak

<masak> r​: say (class { has $.x }).new.x.HOW
<p6eval> rakudo 8a07b8​: OUTPUT«Null PMC access in get_bool()␤ in
attributes [...] in method perl [...] in method gist [...] in sub say
[...]
* masak submits rakudobug
<masak> r​: say (1/2).numerator.HOW
<p6eval> rakudo 8a07b8​: OUTPUT«Null PMC access in get_bool() [...]

@p6rt
Copy link
Author

p6rt commented Oct 15, 2012

From @jnthn

On Mon Oct 15 07​:24​:57 2012, masak wrote​:

<masak> r​: say (class { has $.x }).new.x.HOW
<p6eval> rakudo 8a07b8​: OUTPUT«Null PMC access in get_bool()␤ in
attributes [...] in method perl [...] in method gist [...] in sub say
[...]
* masak submits rakudobug
<masak> r​: say (1/2).numerator.HOW
<p6eval> rakudo 8a07b8​: OUTPUT«Null PMC access in get_bool() [...]

Fixed​:

say (class { has $.x }).new.x.HOW
Perl6​::Metamodel​::ClassHOW.new()
say (1/2).numerator.HOW
Perl6​::Metamodel​::ClassHOW.new()

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Oct 15, 2012

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

@p6rt
Copy link
Author

p6rt commented Nov 14, 2012

From @coke

On Mon Oct 15 15​:34​:21 2012, jnthn@​jnthn.net wrote​:

On Mon Oct 15 07​:24​:57 2012, masak wrote​:

<masak> r​: say (class { has $.x }).new.x.HOW
<p6eval> rakudo 8a07b8​: OUTPUT«Null PMC access in get_bool()␤ in
attributes [...] in method perl [...] in method gist [...] in sub say
[...]
* masak submits rakudobug
<masak> r​: say (1/2).numerator.HOW
<p6eval> rakudo 8a07b8​: OUTPUT«Null PMC access in get_bool() [...]

Fixed​:

say (class { has $.x }).new.x.HOW
Perl6​::Metamodel​::ClassHOW.new()
say (1/2).numerator.HOW
Perl6​::Metamodel​::ClassHOW.new()

Tagging testneeded.

/jnthn

Tests added to S12-class/attributes.t.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Nov 14, 2012

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