$anon_class-new_object: BUILDALL is not called

2010-02-14 Thread Komarov Oleg
I've tried to dig around and to figure it out myself, but it isn't clear for me yet (whether this is a bug or a design decision): when we create an anonymous class and later create an object of this class, shouldn't new_object method call BUILDALL? It turns out that such an object isa

Re: $anon_class-new_object: BUILDALL is not called

2010-02-14 Thread Hans Dieter Pearcey
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

Re: $anon_class-new_object: BUILDALL is not called

2010-02-14 Thread Komarov Oleg
Thanks a lot! That's exactly what I needed to know. On Sun, 14 Feb 2010 18:04:11 -0600 Jesse Luehrs d...@tozt.net wrote: 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.