On Tue, Jan 05, 2010 at 08:42:48AM -0800, Ovid wrote:
> > What would it take to gain the properties of
> > MooseX::Role::Strict in MooseX::Role::Parameterized?
>
> 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';
> ...
I have now tried this. Compilation proceeds without errors, however no
errors are generated if I define duplicate methods in two different roles:
In this case, I defined one version of the method in a role using
MooseX::Strict::Roles, and the other version in a role using
use MooseX::Role::Parameterized;
with 'Force::Strict::Roles';
So alas. :(
--
"Never doubt that a small group of thoughtful,
committed citizens can change the world. Indeed,
it is the only thing that ever has." - Margaret Mead
. . . . .
Karen Etheridge, [email protected] GCS C+++$ USL+++$ P+++$ w--- M++
http://etheridge.ca/ PS++ PE-- b++ DI++++ e++ h(-)