« Return to Thread: Function parameter passed by reference with default value to null

Re: Function parameter passed by reference with default value to null

by Lupus Michaelis-2 :: Rate this Message:

Reply to Author | View in Thread

Stuart a écrit :

> The whole point of default arguments is for it to use that argument if
> none is passed.
   It is not the point too.

> What makes you think not passing an argument to that function should
> raise an error?
   Maybe because in my example, the provided value is not a valuable
value for a reference ?

--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org

Seeking for a position <http://lupusmic.org/pro/>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 « Return to Thread: Function parameter passed by reference with default value to null