Hi,
I would like to be able to replace a role in subclass :
When I have a class and a Role
package PW::Base ;
with 'PW::RoleA';
...
;
==========
package PW::RoleA;
..
after calc => sub {.. };
==========
AND and subclass of PW::Base where I want to have another calc method,
so I have another Role for it:
package PW::Site::Xy::Base;
extends PW::Base;
with 'PW::Site::Xy::RoleA'
...
AND
PW::Site::Xy::RoleA
excludes 'PW::RoleA';
..
after calc => sub {.. };
==========
now I get the error:
The class PW::Site::Xy::Base does the excluded role 'PW::RoleA'
So what am I doing wrong ?
Rolf Schaufelberger