Re: request

From: Date: Sun, 22 Apr 2001 17:48:59 +0000
Subject: Re: request
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-52146@lists.php.net to get a copy of this message
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 -Andrei

« previous php.dev (#52146) next »