> ...even the ubiquitous @ISA=qw(Exporter) isI think it is the wrong approach to suggest changing all the modules that do this. It also fails to solve the larger problem, which is when class A inherits from class B, but B contains a private utility subroutine that you don't want to inherit.
> an abuse of inheritance and causes problems.
People have been talking for a long time about a :method attribute for subroutines. If there were such an attribute, you could simply have a rule that says that only :method subroutines could be inherited. Then the right fix would be very simple: Just tag Exporter::import with the :method attribute.
In reply to Re: (tye)Re: A question of inheritance
by Dominus
in thread A question of inheritance
by Adam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |