Re: Interface inheritance

From: Date: Mon, 19 Apr 2004 21:48:39 +0000
Subject: Re: Interface inheritance
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-9403@lists.php.net to get a copy of this message
George Schlossnagle wrote:
1. First of all, I agree that in a perfect world we should go with E_COMPILE_ERROR for everything. Maybe now that's constructors are
+1
Are you guys serious about a compile error if I override a method with different parameters? This must be the mailing list of a different language than PHP...
If you override an interface with a different number of parameters or with incorrectly typed parameters, yes.
I agree there but 1. was saying _everything_, that included more than just interfaces and abstract classes. That's why I'm asking if you're serious. Let's recap: a) People agree to be strict for *interfaces* and *abstract classes*. b) There was a proposal to also give a compile error for normal methods. I'm not sure if people who gave a +1 here really meant it. - Chris

« previous php.internals (#9403) next »