Re: request

From: Date: Sat, 21 Apr 2001 22:36:34 +0000
Subject: Re: request
References: 1 2 3 4 5 6 7  Groups: php.dev 
Request: Send a blank email to php-dev+get-52114@lists.php.net to get a copy of this message
[Andrei Zmievski <andrei@ispi.net>] > On Sat, 21 Apr 2001, Chuck Hagenbuch wrote: > > This could result in really confusing and unpredictable behavior if "the first > > encountered definition" changed under any circumstances. I'd vote for making > > any name conflicts an error. > > You could have two classes both defining an innocent method toString(), > for example, and with your suggestion, inheriting from those classes > would cause a hard error? Why would "first encountered" definition > change? Okay, what about this one: If two inherited classes define the same method, the inheriting class has to redefine it. This way the inheriting class can be explicit in how to combine or override the inherited methods. We'd need a way of referring to any inherited class's methods though. - Stig -- Stig Sæther Bakken <ssb@fast.no> Fast Search & Transfer ASA, Trondheim, Norway

« previous php.dev (#52114) next »