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 using value from empty routine #1505

Closed
p6rt opened this issue Feb 15, 2010 · 6 comments
Closed

Null PMC access when using value from empty routine #1505

p6rt opened this issue Feb 15, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 15, 2010

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

Searchable as RT72836$

@p6rt
Copy link
Author

p6rt commented Feb 15, 2010

From @masak

<diakopter> rakudo​: class Boo { method new() { } }; say Boo.new
<p6eval> rakudo 70667a​: OUTPUT«Null PMC access in type() [...]
<masak> rakudo​: class Boo {}; say Boo.new
<p6eval> rakudo 70667a​: ( no output )
* masak submits rakuodbug
<masak> rakudo​: class Boo { method foo() { } }; say Boo.foo
<p6eval> rakudo 70667a​: OUTPUT«Null PMC access in type() [...]

@p6rt
Copy link
Author

p6rt commented Feb 15, 2010

From @masak

<diakopter> rakudo​: class Boo { method new() { 1; } }; say Boo.new.WHAT
<p6eval> rakudo 70667a​: OUTPUT«Int()␤»
<masak> oh.
<masak> rakudo​: sub foo() {}; say foo
<p6eval> rakudo 70667a​: OUTPUT«Null PMC access in type() [...]
<masak> the Null PMC access isn't from having a method, it's from the
return value.
<diakopter> seems so
* masak modifies the rakudobug

@p6rt
Copy link
Author

p6rt commented Feb 15, 2010

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

@p6rt
Copy link
Author

p6rt commented Jul 27, 2010

From @bbkr

[18​:50] <bbkr> rakudo​: class Boo { method new() { } }; say Boo.new.WHAT;
# why Parcel? (testing http://rt.perl.org/rt3/Ticket/Display.html?id=72836)
[18​:50] <p6eval> rakudo 9808d7​: OUTPUT«Parcel()␤»
[18​:50] <masak> bbkr​: because Nil is a Parcel.
[18​:52] <bbkr> rakudo​: class Boo { method foo() { } }; say Boo.foo.WHAT
[18​:52] <p6eval> rakudo ac8a2a​: OUTPUT«Parcel()␤»

taken for tests

@p6rt
Copy link
Author

p6rt commented Aug 11, 2010

From @bbkr

tests in
t/spec/S06-advanced_subroutine_features/return.t

@p6rt
Copy link
Author

p6rt commented Aug 11, 2010

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

@p6rt p6rt closed this as completed Aug 11, 2010
@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