On Thu, May 22, 2008 at 2:51 PM, LEW21 <[EMAIL PROTECTED]> wrote:
> 2008/5/22, Alexey Zakhlestin <[EMAIL PROTECTED]>:
>> On Wed, May 21, 2008 at 10:46 PM, LEW21 <[EMAIL PROTECTED]> 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/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to