Re: [RFC] new foo()->bar()

From: Date: Mon, 29 Nov 2010 11:40:36 +0000
Subject: Re: [RFC] new foo()->bar()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-50687@lists.php.net to get a copy of this message
Hi Dmitry, 2010/11/29 Dmitry Stogov <dmitry@zend.com> > Hi Felipe, > I'm wondered it works out of the box with so small patches :) > > However, both patches introduce new parser conflicts and it would be grate > to avoid them. > > I will check if there is any way to avoid it. > Also the patches need to be checked for memory leaks in case of exceptions > thrown from constructor and chained function(s). > Yes, I already did several tests to check this. > It also probably makes sense to add array deference chaining e.g. new > Foo()[] (just for language consistency). > > Hmm, looks good to me. :) Thanks. -- Regards, Felipe Pena

« previous php.internals (#50687) next »