Re: "handles" accessor not being honoured in constructor?
[email protected] (Dave Rolsky)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 20 Oct 2008, Ian Sillitoe wrote: > Ah - I've just seen Stevan's email :) I may well have a go at a MooseX > module when I can clear some time - any suggestions for suitable names or > where/how this should fit in would be very welcome - > MooseX::DelegateInitHandles ? This really seems like it'd be better done on a case-by-case basis in BUILDARGS. Also, keep in mind that handles lets you delegate to _anything_, not just accessors, so just cause we have an attribute which handles a method "foo" does not mean that the thing to which we're delegating has a "foo" attribute. This "foo" could be a plain old method, or it could be an attribute without an init_arg. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/