Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37797 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96523 invoked from network); 22 May 2008 11:13:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 May 2008 11:13:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.46.28 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.28 yw-out-2324.google.com Received: from [74.125.46.28] ([74.125.46.28:16443] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/C7-53818-86555384 for ; Thu, 22 May 2008 07:13:44 -0400 Received: by yw-out-2324.google.com with SMTP id 5so1957833ywb.83 for ; Thu, 22 May 2008 04:13:41 -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=YvDD9ofdljRWbIGkY0wsoZOBcswGEjiQXpm1vsJD670=; b=Xgf0CoLIS9sS+O+AXEo+8uGVU8fO6z//ZziklaFjQck4x9EmN00Ujq7Pw59jWrHonhDgZ84DCNtSRMVk1C+XRF45G46FJn1hwY5CyDHQWtAVMJxwuXdXl3Uy5j0XlTkxkRDm+trRKnVS+obdB3FwfFechhX82U15Y8Lu/gLLSZg= 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=jLpREFJGYVZB6sdb6DCd+FcATqJa0v7rk3fsAM3PU50lhtxmkjZmYvJjehSTFF9CNbfm8hy5By+mICtPOgsTMQRe4jLQiBkkh7ojMCQZ3rg4Zcj3bIG20O6NoAPr8Km8cE9Z0yOQ3dwldzwhaxXGvgXGHKWBVQQHGV95gGE3Jrg= Received: by 10.150.69.5 with SMTP id r5mr25181yba.97.1211454821727; Thu, 22 May 2008 04:13:41 -0700 (PDT) Received: by 10.150.158.8 with HTTP; Thu, 22 May 2008 04:13:41 -0700 (PDT) Message-ID: Date: Thu, 22 May 2008 15:13:41 +0400 To: LEW21 Cc: internals@lists.php.net In-Reply-To: <353f2c6f0805220351h3c043365r10892bab18ab35d0@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> <353f2c6f0805220351h3c043365r10892bab18ab35d0@mail.gmail.com> Subject: Re: [PHP-DEV] RFC: allow_call_pass_by_reference From: indeyets@gmail.com ("Alexey Zakhlestin") On Thu, May 22, 2008 at 2:51 PM, LEW21 wrote: > 2008/5/22, 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 > And what if this param isn't the last param of this function, and next > params are required? > Then I would say "that is a bad design" -- Alexey Zakhlestin http://blog.milkfarmsoft.com/