From: Jesse Luehrs Date: Thu, 19 Feb 2009 04:07:41 +0000 (+0000) Subject: load exports from classes specified by 'also' first, so that subs locally specified... X-Git-Tag: 0.71~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f44ec924c2b0de9197fbcdb63b5dc257381b0895;p=gitmo%2FMoose.git load exports from classes specified by 'also' first, so that subs locally specified by with_caller or as_is have the opportunity to override them (i.e. "export everything from Moose, except use my custom version of extends") --- diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index 7dc4d6e..beb561c 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -40,7 +40,7 @@ sub build_import_methods { my ( $exports, $is_removable ) = $class->_make_sub_exporter_params( - [ $exporting_package, @exports_from ], $export_recorder ); + [ @exports_from, $exporting_package ], $export_recorder ); my $exporter = Sub::Exporter::build_exporter( {