Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91713 invoked from network); 10 Nov 2009 08:41:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2009 08:41:44 -0000 X-Host-Fingerprint: 95.31.13.88 xdmitri2.static.corbina.ru Received: from [95.31.13.88] ([95.31.13.88:23563] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/45-58978-64729FA4 for ; Tue, 10 Nov 2009 03:41:43 -0500 Message-ID: <01.45.58978.64729FA4@pb1.pair.com> To: internals@lists.php.net References: <0F.F6.03668.AD206FA4@pb1.pair.com> <4AF91F92.4000101@easyflirt.com> Date: Tue, 10 Nov 2009 11:41:38 +0300 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Response X-Posted-By: 95.31.13.88 Subject: Re: [PHP-DEV] Regarding constructions like func()[0] From: dmda@yandex.ru ("jvlad") "Mathieu Suen" wrote in message news:4AF91F92.4000101@easyflirt.com... > > Why isn't a mater of pushing the function call statement into a valuable > statement? > > I guess something like this: > > statement : > | value > | function_call; > > > value : > | valriable > | array_access > | method_send > | ...; ... > You also could push the new statement into the value so you can do: > > (new A())->foo(); > > or > > foo(new A()); > > -mthk How many conflicts does it bring? For example patch offered in this issue http://bugs.php.net/bug.php?id=50003 brought 5 new conflicts. Please note that in some cases conflicts will delay calls to zend_compile.c functions and therefore may bring real problems. IMHO it's not as simple as populating grammar elements. The results must be carefully tested to avoid BC breakage. just 2c