Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35618 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25594 invoked by uid 1010); 19 Feb 2008 21:47:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25579 invoked from network); 19 Feb 2008 21:47:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2008 21:47:03 -0000 Authentication-Results: pb1.pair.com header.from=stefan.marr.de@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=stefan.marr.de@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.162.179 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: stefan.marr.de@gmail.com X-Host-Fingerprint: 209.85.162.179 el-out-1112.google.com Linux 2.4/2.6 Received: from [209.85.162.179] ([209.85.162.179:41245] helo=el-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/C9-55225-45E4BB74 for ; Tue, 19 Feb 2008 16:47:02 -0500 Received: by el-out-1112.google.com with SMTP id n30so1222920elf.17 for ; Tue, 19 Feb 2008 13:46:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=NCTaedLYN4yQghe2D1sB+3UXYmVgqMQEt+6gH2jWFbc=; b=BdbklJvFqZKufNwpqUszhU+qle/qUvqEmdJSnVRuiQVLi4QiWtzBC+jajLeJMec/lRz9mGl/CHC7AvSclT+XRBVpBHevn+EDe3iA6hQtW2JLcFslsEXatXi+X4jvRqwUgIWpop0qzbWDV08d0WEFfuBi0iNihuzq/yj/q+3VuTk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=dtwMt4Uc3rNaRUwPH+jRrfoP/UDAlTiiynCzw/usLrojQlbFakSbnIRDaitXYjCv4kO6j5Zm4M+YAUboqvrnORhS5uR42IVQodaCLzuA2qKoP4tDsd9dMaaT0j1HkejuZhDsgDLlInZ2EfWpenyxCw9J8bFLRxGN4rY5qTnCXnY= Received: by 10.142.178.13 with SMTP id a13mr5811296wff.24.1203457617316; Tue, 19 Feb 2008 13:46:57 -0800 (PST) Received: by 10.142.141.2 with HTTP; Tue, 19 Feb 2008 13:46:57 -0800 (PST) Message-ID: <1e12984d0802191346x7c145d7fp14c01ec4e5993779@mail.gmail.com> Date: Tue, 19 Feb 2008 22:46:57 +0100 Sender: stefan.marr.de@gmail.com To: "Stanislav Malyshev" Cc: internals@lists.php.net In-Reply-To: <47BB4AC9.9070701@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <001c01c87264$3c01b4e0$b4051ea0$@de> <173732199.20080219175837@marcus-boerger.de> <1203452909.24580.9.camel@localhost> <1e12984d0802191323o710c6b8ej3a54af7901cf35f1@mail.gmail.com> <47BB4AC9.9070701@zend.com> X-Google-Sender-Auth: 88a677c4618250a2 Subject: Re: [PHP-DEV] RFC: Traits for PHP From: php@stefan-marr.de ("Stefan Marr") 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. :) Kind Regards Stefan