At 12:54 PM 4/22/01 +0300, Stanislav Malyshev wrote:
>Sure this is a hard error. And double sure using first method is wrong.
>Why the first one is better than the second? The third? The 42th? The
>toString function should or be overriden in inherited object, which
>resolves the conflict, or uniquely qualified each time. Choosing random
>(and first _is_ random, because you have no control on the order of
>definitions in foreign code) implementaion is not going to bring any good.

Ok, do you suggest just throwing an error if the symbol is ambiguous? Then 
you need to way to specify which of the parent classes' method to use, C++ 
does it like this:

obj->B::a(); // calls method a() defined in parent class B


PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to