Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35839 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33403 invoked by uid 1010); 28 Feb 2008 04:11:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33388 invoked from network); 28 Feb 2008 04:11:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2008 04:11:57 -0000 Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=andi@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: andi@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:54987] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/B5-14752-C8436C74 for ; Wed, 27 Feb 2008 23:11:57 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 28 Feb 2008 06:12:06 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 27 Feb 2008 20:12:00 -0800 Message-ID: <698DE66518E7CA45812BD18E807866CE01506471@us-ex1.zend.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] How to build a real Trait thing without exclusion and renaming Thread-Index: Ach5tVrTSW+1BTAjTqWiEhmyfJDfMAACoIUg References: <47C317F4.2080301@stefan-marr.de> <698DE66518E7CA45812BD18E807866CE01506447@us-ex1.zend.net> <36.91.14752.56226C74@pb1.pair.com> To: "Joshua Thompson" , X-OriginalArrivalTime: 28 Feb 2008 04:12:06.0159 (UTC) FILETIME=[1450F1F0:01C879C0] Subject: RE: [PHP-DEV] How to build a real Trait thing without exclusion and renaming From: andi@zend.com ("Andi Gutmans") > -----Original Message----- > From: Joshua Thompson [mailto:spam.goes.in.here@gmail.com] > Sent: Wednesday, February 27, 2008 6:54 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] How to build a real Trait thing without > exclusion and renaming >=20 > I was working on a detailed RFC of something along these lines. I > didn't > include the local keyword, instead I went the route of stateful traits > and forced the definition of which scope in the class. I also tried to > keep the number of keywords to 1 (`trait`). >=20 > I will keep working on it, and hopefully post it tomorrow for review. OK but I wouldn't get too caught up on the number of keywords although we obviously don't want too many. By the way one thing I left out of my proposal (mistakenly) was that local can also be used on a function so that "use TraitA *" wouldn't include it in the aggregating class. Andi