Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51246 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67931 invoked from network); 8 Jan 2011 15:13:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2011 15:13:12 -0000 Authentication-Results: pb1.pair.com header.from=mail_ben_schmidt@yahoo.com.au; sender-id=unknown; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=mail_ben_schmidt@yahoo.com.au; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain yahoo.com.au from 98.139.52.208 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mail_ben_schmidt@yahoo.com.au X-Host-Fingerprint: 98.139.52.208 nm11.bullet.mail.ac4.yahoo.com Received: from [98.139.52.208] ([98.139.52.208:22615] helo=nm11.bullet.mail.ac4.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/B4-36205-40F782D4 for ; Sat, 08 Jan 2011 10:13:10 -0500 Received: from [98.139.52.188] by nm11.bullet.mail.ac4.yahoo.com with NNFMP; 08 Jan 2011 15:13:06 -0000 Received: from [98.139.52.129] by tm1.bullet.mail.ac4.yahoo.com with NNFMP; 08 Jan 2011 15:13:06 -0000 Received: from [127.0.0.1] by omp1012.mail.ac4.yahoo.com with NNFMP; 08 Jan 2011 15:13:06 -0000 X-Yahoo-Newman-Id: 322976.41240.bm@omp1012.mail.ac4.yahoo.com Received: (qmail 88243 invoked from network); 8 Jan 2011 15:13:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=QrsNT3YWdA1HomdsXcb/ZX22od8rbGd67hGuPU13P/Gprr6VKJjv73nQ8OL56m+DwyaOJ8v2dQkfEF0vu1rzZPBYnCviCNfeaY73WFKocM2QZfLMtOSz3kwS2hfL5B4a50uP1hEGPxBkB+EdtgUOpTdVGhtYQMxfDyG2+GLAqws= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s1024; t=1294499585; bh=fYqVUHJYCZMNgi5BdIPf2VtYokps9IrLKd0bn1x/Tbo=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=pCob+OYVoT4plr2NlqNjkunehc73xkI4KafFB5s4StuA26Y96Ze6/DIewbY316avEkJI3ZGbU0E11OHW7Sr2/wG/mGU/+e+WcOK4aiUtuCsJqCjqXPkeKmfttskVXlDRdjobCDi5rjIozg2QhP+OXrk/rJPj5RiqaC789y34sKw= Received: from thought.local (mail_ben_schmidt@124.149.85.149 with plain) by smtp132.mail.mud.yahoo.com with SMTP; 08 Jan 2011 07:13:05 -0800 PST X-Yahoo-SMTP: enFMnPSswBAexaHyzgobwuUTrYOhZdJ0KRA2SjA- X-YMail-OSG: ukT56hkVM1lPrCCoRP0CQbWH8rMD1iQg_xgOdhdNrJZen1x D00IeLAemyjVmlXExHcta49crfWinNLMgT9WpjR_AesNNI5WPX6IcZU7cpTI JuNHOX0FhAqmhYv81dvYwF0bsxGTH0LPyOhsDUBxtZ9QT1sOK5Ufq1BUqRXk EcyatHIfN_0REQnPngJ56y3ry4h4c93.KChtDdH1G9S6BVTNixUWmQsx.FSM rnjovM4f1f.k3qnGcQgFCZo4NtBHjyHgkedkiuC2VInqsdfeBVdtzlVGAnXu ExbyCcE1I74EYzCzuEsDAZQLcnaiVZAcH7LjphqZF__BeFw7wYtoF_cv0sDZ bgW3lChELIyACGZjUGx3SLEHKNg-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4D287EFF.6010105@yahoo.com.au> Date: Sun, 09 Jan 2011 02:13:03 +1100 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: Stefan Marr CC: internals@lists.php.net References: <4D206CA4.6060004@yahoo.com.au> <4D287BF0.2030105@yahoo.com.au> In-Reply-To: <4D287BF0.2030105@yahoo.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Extensions to traits From: mail_ben_schmidt@yahoo.com.au (Ben Schmidt) > In fact, this is so nice, could I suggest it would be nice to allow > other delegation-like forwarding to be done like this? You could have > 'use' without a trait even, just like this: > > use { > $queue->add as addToQueue; > } > > Since the properties' object wouldn't be available at compile time, this > extra ability would probably have to be implemented by basically > generating an addToQueue method, and it wouldn't work with arguments > passed by reference. It would basically be a shorthand for > > public function addToQueue() { > return call_user_func(array($queue,'add'),func_get_args()); > } > > but much more elegant. Of course should have been public function addToQueue() { return call_user_func(array($this->queue,'add'),func_get_args()); } Ben.