Re: Fwd: Re: [PHP-DEV] Re: Only variables can be passed by reference
| From: | Yasuo Ohgaki | Date: | Sat, 06 Dec 2014 22:29:12 +0000 |
| Subject: | Re: Fwd: Re: [PHP-DEV] Re: Only variables can be passed by reference | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-79461@lists.php.net to get a copy of this message | ||
Hi Rowan,
On Sat, Dec 6, 2014 at 11:38 PM, Rowan Collins <rowan.collins@gmail.com>
wrote:
> function foo(&$bar=null) { ... }
Default value for pass-by-ref parameter is matter to discuss.
It's nicer if it is allowed. It would be done by creating temporary
variable, I suppose.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net