Re: changing the default base class
[email protected] (Eric Wilhelm)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <[email protected]> |
# from Todd Hepler
# on Friday 17 November 2006 08:40 am:
>>> use Moose::Policy 'My::Moose::Policy';
>It might be nice if you could leave out the "use Moose". I think
> that's the repetition.
Would this be short enough or are we headed down the wrong path there?
use Moose policy => 'My::Moose::Policy;
What about?
use OurMoose;
Which would be supported by:
package OurMoose;
use Moose;
use Moose::Policy 'My::Moose::Policy';
pass_thru(1);
It seems that the caller() stuff in the Moose API generally limits the
ability to wrap it. It would be nice to be able to insert a thin layer
to project-globally control mooseness. Thoughts?
--Eric
--
Like a lot of people, I was mathematically abused as a child.
--Paul Graham
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------