sub get_linear_isa($;$); # must be here
+sub install_subroutines { # must be here
+ my $into = shift;
+
+ while(my($name, $code) = splice @_, 0, 2){
+ no strict 'refs';
+ no warnings 'once', 'redefine';
+ use warnings FATAL => 'uninitialized';
+ *{$into . '::' . $name} = \&{$code};
+ }
+ return;
+}
+
BEGIN{
# This is used in Mouse::PurePerl
Mouse::Exporter->setup_import_methods(
(my $hack_mouse_file = __FILE__) =~ s/.Util//; # .../Mouse/Util.pm -> .../Mouse.pm
$xs = eval sprintf("#line %d %s\n", __LINE__, $hack_mouse_file) . q{
+ local $^W = 0; # work around 'redefine' warning to &install_subroutines
require XSLoader;
XSLoader::load('Mouse', $VERSION);
Mouse::Util->import({ into => 'Mouse::Meta::Method::Constructor::XS' }, ':meta');