Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35795 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19548 invoked by uid 1010); 25 Feb 2008 16:15:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19531 invoked from network); 25 Feb 2008 16:15:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2008 16:15:40 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:3552] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/F8-07350-9A9E2C74 for ; Mon, 25 Feb 2008 11:15:39 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 25 Feb 2008 18:15:44 +0200 Received: from [192.168.17.71] ([192.168.17.71]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 25 Feb 2008 08:15:40 -0800 Message-ID: <47C2E9A1.5090708@zend.com> Date: Mon, 25 Feb 2008 08:15:29 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: php@stefan-marr.de CC: internals@lists.php.net References: <001c01c87264$3c01b4e0$b4051ea0$@de> <698DE66518E7CA45812BD18E807866CE014A8D9D@us-ex1.zend.net> <342791187.20080225104951@marcus-boerger.de> <47C2D8C5.2000401@stefan-marr.de> In-Reply-To: <47C2D8C5.2000401@stefan-marr.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Feb 2008 16:15:40.0860 (UTC) FILETIME=[AA4157C0:01C877C9] Subject: Re: [PHP-DEV] RFC: Traits for PHP From: stas@zend.com (Stanislav Malyshev) Hi! > The main part of the trait idea is to be able to solve conflicts > explicitly. Think this is the major contribution of traits and the > things being discussed here right now are not THIS kind of traits anymore. What I still don't understand it's how you can solve these conflicts at all. I.e., suppose you have Counter API and DBConnection API on each of which you have clean() method - for Counter it resets it to zero and for DB it resets authentication details. How it is possible to resolve it in any way so that resulting class would support both APIs? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com