# aliases as public APIs
-BEGIN{
+# it must be 'require', because Mouse::Meta::Module depends on Mouse::Util
+require Mouse::Meta::Module; # for the entities of metaclass cache utilities
+
+BEGIN {
*class_of = \&Mouse::Meta::Module::class_of;
*get_metaclass_by_name = \&Mouse::Meta::Module::get_metaclass_by_name;
*get_all_metaclass_instances = \&Mouse::Meta::Module::get_all_metaclass_instances;
use Scalar::Util qw/blessed looks_like_number openhandle/;
use Mouse::Util qw(does_role not_supported);
-use Mouse::Meta::Module; # get_metaclass_by_name()
use Mouse::Meta::TypeConstraint;
our @ISA = qw(Exporter);
return $TYPE{$spec} if exists $TYPE{$spec};
- my $meta = Mouse::Meta::Module::get_metaclass_by_name($spec);
+ my $meta = Mouse::Util::get_metaclass_by_name($spec);
if(!$meta){
return;