> -----Original Message-----
> From: Larry Wall [mailto:[EMAIL PROTECTED]
>
> On Fri, Apr 23, 2004 at 01:05:21PM -0400, Austin Hastings wrote:
> : That seems like a good disambiguation marker, too:
> :
> :   class Trog does Tree does Dog {...}
> :
> : # error: conflicting 'bark' methods
> :
> :   class Trog
> :     is PersistentObject
> :             handles «meta dispatch SERIALIZE»
> :     does Tree
> :             handles «bark»
> :     does Dog
> :     {...}
>
> That works in the case of an explicitly named method, since that
> effectively makes .bark a method in the current class.  It would not
> work for a wildcard delegation though, unless Dog were specifically
> marked not to handle .bark.
>

Junctions to the rescue!

  class Trog
    does Tree
        handles «bark»
    does Dog
      handles none«bark»
  {...}

=Austin

Reply via email to