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 calling method on undeclared class whose namespace 'children' have been declared #1436

Closed
p6rt opened this issue Dec 14, 2009 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Dec 14, 2009

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

Searchable as RT71260$

@p6rt
Copy link
Author

p6rt commented Dec 14, 2009

From @masak

This be Rakudo 7ef386.

$ perl6 -e 'class A​::B {}; A.foo'
invoke() not implemented in class 'NameSpace'
[...]

$ cat A/B.pm
class A​::B {
}
$ perl6 -e 'use A​::B; A.foo'
Null PMC access in getprop()
[...]

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

From @coke

On Mon Dec 14 05​:27​:15 2009, masak wrote​:

This be Rakudo 7ef386.

$ perl6 -e 'class A​::B {}; A.foo'
invoke() not implemented in class 'NameSpace'
[...]

$ cat A/B.pm
class A​::B {
}
$ perl6 -e 'use A​::B; A.foo'
Null PMC access in getprop()
[...]

Looks like we get Perl 6 errors now instead of parrot ones.

$ ./perl6 -e 'class A​::B {}; A.foo'
Could not find sub &A
  in main program body at line 1
$ cat A/B.pm
class A​::B {
}
$ ./perl6 -e 'use A​::B; A.foo'
Method 'foo' not found for non-object
  in main program body at line 1

Assigning to moritz...

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

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

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

From @coke

On Mon Dec 14 05​:27​:15 2009, masak wrote​:

This be Rakudo 7ef386.

$ perl6 -e 'class A​::B {}; A.foo'
invoke() not implemented in class 'NameSpace'
[...]

$ cat A/B.pm
class A​::B {
}
$ perl6 -e 'use A​::B; A.foo'
Null PMC access in getprop()
[...]

Looks like we get Perl 6 errors now instead of parrot ones.

$ ./perl6 -e 'class A​::B {}; A.foo'
Could not find sub &A
  in main program body at line 1
$ cat A/B.pm
class A​::B {
}
$ ./perl6 -e 'use A​::B; A.foo'
Method 'foo' not found for non-object
  in main program body at line 1

Assigning to moritz...

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Feb 3, 2012

From @moritz

Now tested in S10-packages/joined-namespaces.t

@p6rt
Copy link
Author

p6rt commented Feb 3, 2012

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