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

Rakudo gives Null PMC access when instantiating class imported from within class definition #649

Closed
p6rt opened this issue Jan 25, 2009 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jan 25, 2009

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

Searchable as RT62728$

@p6rt
Copy link
Author

p6rt commented Jan 25, 2009

From @masak

Rakudo r35994​:

$ cat B.pm
class B;
$ perl6 -e 'use B; class A { method a { my $e = B.new() } }; A.new.a'
$ perl6 -e 'class A { use B; method a { my $e = B.new() } }; A.new.a'
Null PMC access in find_method()
[...]

The fact that B is declared with the semicolon form is irrelevant --
C<B {}> produces the same error.

@p6rt
Copy link
Author

p6rt commented Mar 29, 2009

From @moritz

On Sun Jan 25 04​:41​:25 2009, masak wrote​:

Rakudo r35994​:

$ cat B.pm
class B;
$ perl6 -e 'use B; class A { method a { my $e = B.new() } }; A.new.a'
$ perl6 -e 'class A { use B; method a { my $e = B.new() } }; A.new.a'
Null PMC access in find_method()
[...]

The fact that B is declared with the semicolon form is irrelevant --
C<B {}> produces the same error.

This works now (probably due to jnthn++'s recent import cleanup), and
tested in t/spec/S11-modules/import.t.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Mar 29, 2009

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

@p6rt
Copy link
Author

p6rt commented Mar 29, 2009

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

@p6rt p6rt closed this as completed Mar 29, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant