On Sun, Feb 22, 2009 at 4:06 PM, Stevan Little
<stevan.lit...@iinteractive.com> wrote:
> Michael,
>
> POE::Wheel::Run::new is being called here, your Moose constructor will never
> be called. Additionally POE::Wheel::Run uses Array refs for it's instance
> type, which would not be compatible with the Hash ref instance type that
> Moose would want to use.
>
> I suggest you first take a look at MooseX::POE to see if that might be able
> to do what you want. If it does not do what you are looking for (or provide
> something similar enough) then I would suggest using delegation here instead
> of inheritance (see the 'handles' option detailed in Moose.pm,
> Moose::Manual::Delegation, and Moose::Cookbook::Basics::Recipe11 for
> constructor args munging). If you don't want to use delegation then I would
> suggest not using Moose in this case.

Also MooseX::Workers for an example of how this kind of delegation has
already been done.

-Chris

Reply via email to