On Sat, Jul 18, 2009 at 08:48:06PM +1000, Daniel Pittman wrote: > Which code is in the "wrong" here — MooseX::Daemonize, or MooseX::Declare? > > By "wrong" I mean, which of the two is making an assumption that isn't > supported by Moose, or are they both doing fine, and just not compatible?
They're both doing fine. Use 'with' inside your class definition, as usual for Moose, so that it's composed immediately, rather than in the class declaration, which delays it until the end of the class block. There's no single right thing to do here right now; some roles break if you compose them too early, and some if you do it too late. The former is probably more common, so that's what MX::Declare optimizes for. hdp.