"Multiple Inheritance" for Interfaces

From: Date: Sat, 13 Dec 2003 15:09:33 +0000
Subject: "Multiple Inheritance" for Interfaces
Groups: php.internals 
Request: Send a blank email to internals+get-6409@lists.php.net to get a copy of this message
While porting PicoContainer to PHP 5 I noticed that we currently do not support syntax to have an interface extend more than one parent interface. For instance interface A {} interface B {} interface C extends A, B {} is possible in Java while PHP 5 currently throws a syntax error, which it does not for interface A {} interface B {} interface C implements A, B {} I have now two questions: - Could we please add the syntax/semantic from Java so that interfaces can extend more than one parent interface? - Does interface C implements A, B {} do what I want? Greetings, Sebastian -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/

« previous php.internals (#6409) next »