This doesn't seem to work for me:
use v5.14.4; use warnings; use autodie qw< :all >; use Moops; role Foo { #use Moose::Role; use Data::Printer; p __PACKAGE__->meta; } 1;
First of all, should it? If not, why not? Note that if you uncomment the commented line, then it works fine. But that seems redundant to me.
To clarify, when I say "doesn't work," what I mean is:
Can't locate object method "meta" via package "Foo" at test.pm line 12 +. BEGIN failed--compilation aborted at test.pm line 13.
What I really want to do is this:
role Foo { use Moose::Util; Moose::Util::meta_attribute_alias 'Foo'; }
but not being able to get the meta means that fails as well:
Can't call method "isa" on an undefined value at /home/buddy/perl5/perlbrew/perls/perl-5.14.4/lib/site_perl/5.14.4/x86_64-linux/Moose/Util.pm line 335.Enlighten me, O fellow monks. What is the magical Moops incantation I'm missing here?
In reply to Moops: meta not available in role by Oberon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |