From: Alex J. G. BurzyƄski Date: Fri, 5 Aug 2011 09:47:47 +0000 (+0100) Subject: add _get_linear_isa and _in_global_destruction X-Git-Tag: v0.009011~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3c7393974323115c96a461ae6c3bfdecafc2eb0f;p=gitmo%2FMoo.git add _get_linear_isa and _in_global_destruction --- diff --git a/lib/Moo/_Utils.pm b/lib/Moo/_Utils.pm index 1e53b0e..6b1a5b3 100644 --- a/lib/Moo/_Utils.pm +++ b/lib/Moo/_Utils.pm @@ -12,8 +12,12 @@ BEGIN { use strictures 1; use base qw(Exporter); +use Moo::_mro; -our @EXPORT = qw(_getglob _install_modifier _load_module _maybe_load_module); +our @EXPORT = qw( + _getglob _install_modifier _load_module _maybe_load_module + _get_linear_isa +); sub _install_modifier { my ($into, $type, $name, $code) = @_; @@ -54,4 +58,11 @@ sub _maybe_load_module { return $MAYBE_LOADED{$_[0]}; } +sub _get_linear_isa { + return mro::get_linear_isa($_[0]); +} + +our $_in_global_destruction = 0; +END { $_in_global_destruction = 1 } + 1;