On Tuesday 27 Apr 2010 15:51:07 Stevan Little wrote:
> On Apr 27, 2010, at 3:36 AM, Shlomi Fish wrote:
> > Hi all!
> >
> > After merging XML-Grammar-Fiction and XML-Grammar-Screenplay, I have
> > accumulated several questions about Moose, so I'd post each one in a
> > separate
> > post to keep each thread single-topic. (I hope it's OK.)
> >
> > The first one is how to implement a Class::Std/Perl 6-like walkmeth:
> >
> > * http://blog.gmane.org/gmane.comp.lang.perl.qotw.discuss/month=20070701
> >
> > * http://search.cpan.org/perldoc?Class::Std (search for CUMULATIVE).
> >
[SNIP]
> > My question is: is there a better way to do it using Moose? (Or one
> > of the
> > MooseX modules?) Instead, should I implement my own private logic or
> > create a
> > new MooseX module?
>
> No, that is pretty much how you would do it. Take a look at
> Moose::Object::BUILDALL, it does the same thing.
OK, thanks. I might create a small MooseX::AccumArray distro out of it.
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Parody on "The Fountainhead" - http://shlom.in/towtf
God considered inflicting XSLT as the tenth plague of Egypt, but then
decided against it because he thought it would be too evil.
Please reply to list if it's a mailing list post - http://shlom.in/reply .