Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37914 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71591 invoked from network); 27 May 2008 06:18:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2008 06:18:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; 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:27153] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/7A-12568-2C7AB384 for ; Tue, 27 May 2008 02:18:43 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 27 May 2008 09:19:55 +0300 Received: from [192.168.17.33] ([192.168.17.33]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 26 May 2008 23:19:51 -0700 Message-ID: <483BA7B1.2050008@zend.com> Date: Tue, 27 May 2008 01:18:25 -0500 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Stan Vassilev | FM CC: internals@lists.php.net References: <012701c8bb44$68f8b880$4401a8c0@foxbox> <48342DB7.2020108@isdg.net> <353f2c6f0805211141m9719d58xe0a128adbc14b656@mail.gmail.com> <353f2c6f0805211146p43d6aa96u9e6e03e82490b1c@mail.gmail.com> <325D72617BCF43A39670646B85FDB5FD@pc> In-Reply-To: <325D72617BCF43A39670646B85FDB5FD@pc> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 May 2008 06:19:51.0823 (UTC) FILETIME=[AC2C31F0:01C8BFC1] Subject: Re: [PHP-DEV] RFC: allow_call_pass_by_reference From: stas@zend.com (Stanislav Malyshev) Hi! > In a perfect world, here's how I'd do it, of course the actual syntax > can be something else (this also improves the understanding of the code > as it makes the intent explicit, versus implicit at call time, as it is > now): > > --- > > function foo(& $a) {} // allows only explicit pass by reference > > foo($a); // illegal, error > foo(& $a); // legal, pass by reference I'm not sure I understand what's the purpose of this. Passing by reference means that function may modify it's parameter. I see no reason why such function should be called with some special syntax, could you explain? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com