From: Shawn M Moore Date: Tue, 10 Jun 2008 19:11:56 +0000 (+0000) Subject: Fix the order that BUILD methods are called in (thanks Robert Boone) X-Git-Tag: 0.04~31 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2230a6a3776852f5d73e634c9ddd909d95ca4d7d;p=gitmo%2FMouse.git Fix the order that BUILD methods are called in (thanks Robert Boone) --- diff --git a/lib/Mouse/Object.pm b/lib/Mouse/Object.pm index 70ad475..265787a 100644 --- a/lib/Mouse/Object.pm +++ b/lib/Mouse/Object.pm @@ -74,7 +74,7 @@ sub BUILDALL { no strict 'refs'; - for my $class ($self->meta->linearized_isa) { + for my $class (reverse $self->meta->linearized_isa) { my $code = *{ $class . '::BUILD' }{CODE} or next; $code->($self, @_);