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

Should we store the metaclass in the $Foo:: variable? #10

Open
stevan opened this issue Aug 16, 2015 · 1 comment
Open

Should we store the metaclass in the $Foo:: variable? #10

stevan opened this issue Aug 16, 2015 · 1 comment

Comments

@stevan
Copy link
Owner

stevan commented Aug 16, 2015

I have no idea what $Foo:: is used for, I know that %Foo:: provides access to the stash but $Foo:: seems to just return undef without error.

perl -e 'package Foo; package main; use strict; use warnings; use Devel::Peek; Dump($Foo::)'
SV = NULL(0x0) at 0x7f9d13003450
    REFCNT = 1
    FLAGS = ()
@stevan stevan changed the title {Sh|C}ould we store the metaclass in the $Foo:: variable? Should we store the metaclass in the $Foo:: variable? Aug 16, 2015
@stevan
Copy link
Owner Author

stevan commented Jan 15, 2017

We could also store it in the hits hash, like $^H{'MOP/meta'}

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