in reply to Why Moose roles?
Moose roles have some limitations, such as inability to override a method in a class which "with"es the role.It is not a limitation, it is a feature. ;-)
The whole idea with roles is to avoid the mess occurring quite commonly with multiple inheritance, unseen method resolution conflicts, and so on. Roles make it possible to add behaviors to a class or to objects, not to override existing methods. If you need to override a method, then you have to subclass it.
Update: fixed a typo.
|
|---|