Re: Feature request

From: Date: Fri, 10 Nov 2006 22:48:28 +0000
Subject: Re: Feature request
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-26497@lists.php.net to get a copy of this message
Hello Dmitry, the major problem here is that people have a wrong understanding of what it would do. Without return by reference it creates copies which not only makes assignments useless but also read code very slow. To overcome this, we would need to discuss another error message's fate/severity and live with yet another hard to understand, pretty much misleading feature. best regards marcus Thursday, November 9, 2006, 10:21:45 PM, you wrote: > Hey guys. > What are you thinking about adding this feature: > <?php > function foo() > { > return array(1,2,3,4,5,6); > } > echo foo()[4]; // <---- it that > // or may be (foo())[4] ? > // instead of > $var = foo(); > echo $var[4]; ?>> Best regards, Marcus

« previous php.internals (#26497) next »