Re: RFC: Traits for PHP

From: Date: Tue, 19 Feb 2008 23:57:36 +0000
Subject: Re: RFC: Traits for PHP
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-35630@lists.php.net to get a copy of this message
Hi Stas, Am Dienstag, den 19.02.2008, 14:58 -0800 schrieb Stanislav Malyshev: [...] > Renaming poses problem not only with interfaces. Imagine trait having > these methods: > > function add($key, $value) { ... } > function delete($key) { ... } > function replace($key, $value) { $this->delete($key); $this->add($key, > $value); } > > What happens if add() is renamed or replaced with function from other > trait/interface or dropped? As the $this is resolved after flattening, the delete()-method of the current class is used, isn't it? cu, Lars

Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
« previous php.internals (#35630) next »