freebsd-ports/devel/p5-MooseX-Role-Strict/pkg-descr
Sunpoet Po-Chuan Hsieh 6ded264c9f - Add p5-MooseX-Role-Strict 0.05
When using Moose::Role, a class which provides a method a role provides will
silently override that method. This can cause strange, hard-to-debug errors when
the role's methods are not called. Simple use MooseX::Role::Strict instead of
Moose::Role and overriding a role's method becomes a composition-time failure.
See the synopsis for a resolution.

WWW: http://search.cpan.org/dist/MooseX-Role-Strict/

Feature safe:	yes
2013-04-16 16:45:52 +00:00

7 lines
404 B
Text

When using Moose::Role, a class which provides a method a role provides will
silently override that method. This can cause strange, hard-to-debug errors when
the role's methods are not called. Simple use MooseX::Role::Strict instead of
Moose::Role and overriding a role's method becomes a composition-time failure.
See the synopsis for a resolution.
WWW: http://search.cpan.org/dist/MooseX-Role-Strict/