On Sun, Feb 14, 2010 at 06:40:46PM -0500, Hans Dieter Pearcey wrote:
> Excerpts from Komarov Oleg's message of Sun Feb 14 18:17:07 -0500 2010:
> > It turns out that such an object isa 'Moose::Object', but
> > Moose::Object::new isn't involved in its creation.
> 
> $class->new calls $class->meta->new_object, not the other way around.  You 
> have
> confused the lower level interface for the higher level one.

To clarify, if you want Moose features during object construction
(rather than just handling attributes and such), you should use
$meta->name->new, not $meta->new_object.

-doy

Reply via email to