Perl 6 makes calling sets of methods[0] easy as well:<p><pre><code>    role Foo { multi method go { 1 } }
    role Bar { multi method go { 2 } }
    my $t = (class :: { }).new;

    $t does Foo;
    say $t.*go;  # (1)

    $t does Bar;
    say $t.*go;  # (2, 1)
</code></pre>
[0]: <a href="https:&#x2F;&#x2F;design.perl6.org&#x2F;S12.html#Calling_sets_of_methods" rel="nofollow">https:&#x2F;&#x2F;design.perl6.org&#x2F;S12.html#Calling_sets_of_methods</a>