p5-MOP icon indicating copy to clipboard operation
p5-MOP copied to clipboard

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

Open stevan opened this issue 10 years ago • 1 comments

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 avatar Aug 16 '15 11:08 stevan

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

stevan avatar Jan 15 '17 15:01 stevan