Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35565 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95618 invoked by uid 1010); 18 Feb 2008 23:02:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95603 invoked from network); 18 Feb 2008 23:02:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2008 23:02:01 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:2129] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/E0-23568-26E0AB74 for ; Mon, 18 Feb 2008 18:01:58 -0500 Received: (qmail 71808 invoked by uid 98); 18 Feb 2008 22:37:12 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/5868. Clear:RC:1(127.0.0.1):. Processed in 0.121117 secs); 18 Feb 2008 22:37:12 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 18 Feb 2008 22:37:12 -0000 Received: from 98.193.37.55 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Mon, 18 Feb 2008 16:37:12 -0600 (CST) Message-ID: <58510.98.193.37.55.1203374232.squirrel@www.l-i-e.com> In-Reply-To: <001c01c87264$3c01b4e0$b4051ea0$@de> References: <001c01c87264$3c01b4e0$b4051ea0$@de> Date: Mon, 18 Feb 2008 16:37:12 -0600 (CST) To: php@stefan-marr.de Cc: internals@lists.php.net, 'Marcus =?iso-8859-1?Q?B=F6rger'?= , 'Johannes =?iso-8859-1?Q?Schl=FCter'?= , "'Sebastian Bergmann'" , "'Alexandre Bergel'" , "'Falko Menge'" , "'Sara Golemon'" , derick@php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] RFC: Traits for PHP From: ceo@l-i-e.com ("Richard Lynch") On Mon, February 18, 2008 1:27 pm, php@stefan-marr.de wrote: > trait ezcReflectionReturnInfo { > function getReturnType() { /*1*/ } > function getReturnDescription() { /*2*/ } > } > > class ezcReflectionMethod extends ReflectionMethod { > use ezcReflectionReturnInfo; So it's just like an include for a re-used body of 'class' code. Hmmmm. Why not just allow 'include' here instead? :-) Forgive me if I'm missing something subtle/complex here, but I wonder if a Trait is really the "right answer"... Yes, the ability to add/exclude specific functions from two Traits is "gone" with a simple 'include'... But so is the complexity of yet another language construct... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?