--- On Tue, 5/1/10, Karen Etheridge <p...@froods.org> wrote: > From: Karen Etheridge <p...@froods.org>
> What would it take to gain the properties of > MooseX::Role::Strict in > MooseX::Role::Parameterized? I've been using strict > roles everywhere and > love them -- they've caught a few bugs that I'm sure would > have been > dreadful to track down otherwise; now I'm parameterizing a > few of my roles > and I'm mourning the loss of strict checking. > > I've been meaning to find the time to just sit down and do > some experiments > myself (I've done a bit of meta hacking with traits and > Moose::Exporter), > but I'd like to toss the question out there in case anyone > else has thought > along similar lines. I haven't tried it, but have you tried this? package Force::Strict::Roles; use MooseX::Strict::Role; 1; And then in your parameterized role: package SOme::Param::Role; use MooseX::Role::Parameterized; with 'Force::Strict::Roles'; ... ??? Again, that's not tested, but it might work for you. That being said, I need to write MooseX::Role::Warning. That's less safe, but it scales better for roles released to the CPAN. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6