On Wed, Feb 04, 2004 at 01:30:44AM -0500, Joseph Ryan wrote:
> >Whether it should actually be in the language is up for debate.  I'd say
> >that if you need to do this with any frequency whatsoever, you're not
> >thinking about roles right.  A good example might be in order... :-)
> 
> 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.

Same way you do it now.

        package Foo;
        use base qw(This That);

        sub conflicting_inherited_method {
                goto &{That->can("conflicting_inherited_method")};
        }


-- 
Michael G Schwern        [EMAIL PROTECTED]  http://www.pobox.com/~schwern/
Cheating is often more efficient.
        - Seven of Nine

Reply via email to