Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37790 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58563 invoked from network); 22 May 2008 08:05:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 May 2008 08:05:45 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.46.30 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 74.125.46.30 yw-out-2324.google.com Received: from [74.125.46.30] ([74.125.46.30:38215] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/90-53818-75925384 for ; Thu, 22 May 2008 04:05:43 -0400 Received: by yw-out-2324.google.com with SMTP id 5so1919142ywb.83 for ; Thu, 22 May 2008 01:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+R27PoQWI5l+cYeE7a02zcN58uHrVjhwqXzGCF5GSJQ=; b=CKUcNMYKj7hEi2ZHVSQ1ePjMvFrNl2YdypC8KJa4ah3XRkXGhCM3B21oUYGkkDPxHH42NB+99ujS78Zx1EIqh5ScXCQyV2CLCbOke4itVqGKJPgIbuaIZZIE6apO0g8j4l/16xA4UVH7FG2RfxeaIJf1Q5DY+RW2ECxukK3PlRY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cdrtKUIlMwg3myQShgyhkl92BYE7Crt0f2jWiM/4mn1fr7cPqnYuyXV9Dmf30fBaxzguJwsti84iG+LllPcIG2cTV3BRbsAUHS8SjbL3mZm5mR10L4/hMSekHyFeKppWFeDOZoEvim68SWO4eCriH0He/cknScW+/7l5+iqBUyY= Received: by 10.150.86.10 with SMTP id j10mr1544657ybb.212.1211443539161; Thu, 22 May 2008 01:05:39 -0700 (PDT) Received: by 10.150.158.8 with HTTP; Thu, 22 May 2008 01:05:39 -0700 (PDT) Message-ID: Date: Thu, 22 May 2008 12:05:39 +0400 To: LEW21 Cc: internals@lists.php.net In-Reply-To: <353f2c6f0805211146p43d6aa96u9e6e03e82490b1c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <012701c8bb44$68f8b880$4401a8c0@foxbox> <48342DB7.2020108@isdg.net> <353f2c6f0805211141m9719d58xe0a128adbc14b656@mail.gmail.com> <353f2c6f0805211146p43d6aa96u9e6e03e82490b1c@mail.gmail.com> Subject: Re: [PHP-DEV] RFC: allow_call_pass_by_reference From: indeyets@gmail.com ("Alexey Zakhlestin") On Wed, May 21, 2008 at 10:46 PM, LEW21 wrote: > Sometimes call time pass by reference is useful, for example when you > want to make it possible to omit an param (normally passed by > reference) by setting null. With no call time pass by reference, > programmers are required to write: > > $null = null; > foo($null); what stops you from declaring: function someFunc(&$param = null) { } it works just fine > Deleting it isn't a good idea, it should become a normal (not > deprecated) language feature. -- Alexey Zakhlestin http://blog.milkfarmsoft.com/