Re: RFC: allow_call_pass_by_reference

From: Date: Thu, 22 May 2008 08:05:39 +0000
Subject: Re: RFC: allow_call_pass_by_reference
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-37790@lists.php.net to get a copy of this message
On Wed, May 21, 2008 at 10:46 PM, LEW21 <lew21st@gmail.com> 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/

« previous php.internals (#37790) next »