Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35619 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27048 invoked by uid 1010); 19 Feb 2008 21:51:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27033 invoked from network); 19 Feb 2008 21:51:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2008 21:51:26 -0000 Authentication-Results: pb1.pair.com header.from=evert@rooftopsolutions.nl; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=evert@rooftopsolutions.nl; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rooftopsolutions.nl from 66.207.192.7 cause and error) X-PHP-List-Original-Sender: evert@rooftopsolutions.nl X-Host-Fingerprint: 66.207.192.7 smtp0.beanfield.net FreeBSD 4.6-4.9 Received: from [66.207.192.7] ([66.207.192.7:2390] helo=smtp0.beanfield.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/1A-55225-C5F4BB74 for ; Tue, 19 Feb 2008 16:51:25 -0500 Received: from evertbook.local (mail.ads.poolexpert.com [66.207.210.84] (may be forged)) by smtp0.beanfield.net (8.13.4/8.12.11) with ESMTP id m1JLksBG071247; Tue, 19 Feb 2008 16:46:55 -0500 (EST) (envelope-from evert@rooftopsolutions.nl) Message-ID: <47BB4F49.1030904@rooftopsolutions.nl> Date: Tue, 19 Feb 2008 16:51:05 -0500 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Stefan Marr CC: Stanislav Malyshev , internals@lists.php.net References: <001c01c87264$3c01b4e0$b4051ea0$@de> <173732199.20080219175837@marcus-boerger.de> <1203452909.24580.9.camel@localhost> <1e12984d0802191323o710c6b8ej3a54af7901cf35f1@mail.gmail.com> <47BB4AC9.9070701@zend.com> <1e12984d0802191346x7c145d7fp14c01ec4e5993779@mail.gmail.com> In-Reply-To: <1e12984d0802191346x7c145d7fp14c01ec4e5993779@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Traits for PHP From: evert@rooftopsolutions.nl (Evert | Rooftop) Stefan Marr wrote: > Hi Stanislav, > > >>> traits the included trait is using). Ok this is the scope. Now we >>> would need to adjust all those method bodies, find all method calls on >>> $this->oldMethodName() and change them to $this->newMethodName(). >>> >> You can't - PHP has dynamic method resolution (think $this->$foo()). >> Also, it has callbacks - what happens if method is registered as >> callback is renamed? >> > thanks, this is very good reason not to allow renaming, but aliasing. > :) > Aliasing doesn't make a lot of sense, as you can always : function newMethod() { return $this->oldMethod(); } just seems like unneeded complexity, without a clear benefit..