Fix the order that BUILD methods are called in (thanks Robert Boone)
Shawn M Moore [Tue, 10 Jun 2008 19:11:56 +0000 (19:11 +0000)]
lib/Mouse/Object.pm

index 70ad475..265787a 100644 (file)
@@ -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, @_);