use named params to instance_metaclass->new
Yuval Kogman [Fri, 8 Aug 2008 23:44:45 +0000 (23:44 +0000)]
lib/Class/MOP/Class.pm

index 439ed84..f517a56 100644 (file)
@@ -398,8 +398,8 @@ sub get_meta_instance {
         if defined $self->{'_package_cache_flag'} && 
                    $self->{'_package_cache_flag'} == Class::MOP::check_package_cache_flag($self->name);
     $self->{'_meta_instance'} ||= $self->instance_metaclass->new(
-        $self,
-        $self->compute_all_applicable_attributes()
+        associated_metaclass => $self,
+        attributes => [ $self->compute_all_applicable_attributes() ],
     );
 }