Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56338 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65159 invoked from network); 16 Nov 2011 02:31:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2011 02:31:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 148.87.113.117 cause and error) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 148.87.113.117 rcsinet15.oracle.com Received: from [148.87.113.117] ([148.87.113.117:18927] helo=rcsinet15.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/67-24592-C7023CE4 for ; Tue, 15 Nov 2011 21:31:24 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pAG2VK0T008319 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 Nov 2011 02:31:21 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pAG2VJwp001991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Nov 2011 02:31:20 GMT Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pAG2VE77030968; Tue, 15 Nov 2011 20:31:14 -0600 Received: from hubby.local (/204.14.155.248) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 15 Nov 2011 18:31:14 -0800 Message-ID: <4EC32072.8010700@oracle.com> Date: Tue, 15 Nov 2011 18:31:14 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Rasmus Schultz CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4EC32079.00D2,ss=1,re=0.000,fgs=0 Subject: Re: [PHP-DEV] some notes about traits From: christopher.jones@oracle.com (Christopher Jones) On 11/15/11 4:17 PM, Rasmus Schultz wrote: > So I guess my remaining quibble is that the documentation needs to relay > this somehow - with a basic real-world example that actually uses an > interface too, to clarify the difference, and to demonstrate how this tool > use useful in conjunction with class and interface declarations. Hello > world really doesn't explain anything, other than the syntax. > > Here's a better example of something useful that actually works: Assuming your example is OK, you could edit the doc and submit it as a patch at https://edit.php.net. Chris -- Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/