Hildo Biersma <[EMAIL PROTECTED]> writes:
>
>> =head2 Inheritance
>> 
>> As with the existing C<use base>/C<use fields> pragmata, Perl 6
>> classes should support single, linear inheritance only.  Multiple
>> inheritance is generally more trouble than it's worth.
>
>Yuck.  MI is useful though sometimes abused, and even (cough) Java
>supports multiple inheritance of interfaces.  There is existing perl5
>code using mulitple inheritance that we should be able to support in
>perl 6.

Multiple inheritance is useful for 'mixins'. For example Tk has a 
'mixin' class Tk::Wm which is used as a prefix to the @ISA list 
of widgets which are "toplevels" and thus should respond to methods 
relating to the "Window Manager".

These "mixin" classes typically add extra methods which are defined in terms
of methods of the "core" object. As such they do not _usually_ require 
attribute space in the object.

-- 
Nick Ing-Simmons

Reply via email to