On 07 Aug 2000 13:57:14 +0200, Jean-Louis Leroy wrote:
>Bart Lateur <[EMAIL PROTECTED]> writes:
>
>> The problem is that you can't safely subclass a class, without examining
>> it's source, just to make sure that your instance fields don't clash
>> with any private fields of the mother class.
>
>Well...let's think twice. What has the reputatin of being a bug or a
>shortcoming in Perl is actually a feature in CLOS.
>Thus, regardless of the issue about field inheritance, I believe that
>"you can't safely subclass a class, without examining it's source" (or
>its documentation, which should spell out the existence and purpose of
>each field).
Until you want to have multiple inheritance, where the (private?) fields
of both mother classes share some common names. So you can't combine
them, no matter how well-informed you are.
What will you say then? "Sorry, it's impossible"?
--
Bart.