From: Stevan Little Date: Wed, 3 May 2006 02:26:57 +0000 (+0000) Subject: foo X-Git-Tag: 0_09_03~47 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=575db57df00827f5541664f9fb689900b1da98fe;p=gitmo%2FMoose.git foo --- diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index f191906..c4a78a3 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -57,6 +57,10 @@ sub new_object { sub construct_instance { my ($class, %params) = @_; my $meta_instance = $class->get_meta_instance; + # FIXME: + # the code below is almost certainly incorrect + # but this is foreign inheritence, so we might + # have to kludge it in the end. my $instance = $params{'__INSTANCE__'} || $meta_instance->create_instance(); foreach my $attr ($class->compute_all_applicable_attributes()) { $attr->initialize_instance_slot($meta_instance, $instance, \%params)