Joseph Ryan wrote:
> Well, what if the two classes you want to inherit from weren't
> designed with roles in mind?  For instance, there might be two
> CPAN modules that each have a dozen methods that you want to
> inherit, but they each have 1 that overlap whose conflict you
> want to easily resolve.

The conflict can still be resolved via a class method that routes to the
appropriate inherited method.  

That said, if some sort of "exclusion" technique gets implemented for
roles, I don't see why it shouldn't also be implemented for classes - with
the caveat that actually removing a method (as opposed to merely
suppressing a conflict) would generally be considered bad OO practice.  

=====
Jonathan "Dataweaver" Lang

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

Reply via email to