Quick question: In Perl 6, if I declare a method with some properties,
and then override that method in a subclass, will the overridden method
inherit the properties of the SUPER method?
Thanks,
David
--
David Wheeler AIM: dwTheory
da...@kineticode.com ICQ: 15726394
Yahoo!: dew7e
Jabber: The...@jabber.org
Kineticode. Setting knowledge in motion.[sm]
I think it depends on the property. For the properties mentioned in
A6, I can't think of one you wouldn't want to inherit. But eventually
there may emerge traits that you wouldn't want to inherit.
In fact, it may be the fact that traits inherit by default that makes
traditional, "code" inheritance work at all, considering that C<do> is
a trait in itself.
Luke
> I think it depends on the property. For the properties mentioned in
> A6, I can't think of one you wouldn't want to inherit. But eventually
> there may emerge traits that you wouldn't want to inherit.
>
> In fact, it may be the fact that traits inherit by default that makes
> traditional, "code" inheritance work at all, considering that C<do> is
> a trait in itself.
Okay, cool. I take it, then, that traits can be overridden in
subclasses?