Re: [PHP-DEV] Re: break/continue $var

2010-11-19 Thread Ilia Alshanetsky
+1 to removing it. I think now that we have goto, this functionality does not make much sense. On Fri, Nov 19, 2010 at 9:06 AM, Dmitry Stogov wrote: > without $var it would be possible to compile break/continue into > ZEND_FREE/ZEND_SWITCH_FREE and ZEND_JMP. > > I also thought it would allow to r

Re: [PHP-DEV] Re: break/continue $var

2010-11-19 Thread Tjerk Meesters
Reading those notes I'm wondering what's meant by dynamic break is not working? I understand how it could lead to better compilation, but a mere 'not working' at the very least intrigues me :) I have actually used this construct, though its purpose is mainly in parser routines, so I guess I could

Re: [PHP-DEV] Re: break/continue $var

2010-11-19 Thread Tjerk Meesters
Reading those notes I'm wondering what's meant by dynamic break is not working? I understand how it could lead to better compilation, but a mere 'not working' at the very least intrigues me :) I have actually used this construct, though its purpose is mainly in parser routines, so I guess I could

[PHP-DEV] Re: break/continue $var

2010-11-19 Thread Dmitry Stogov
without $var it would be possible to compile break/continue into ZEND_FREE/ZEND_SWITCH_FREE and ZEND_JMP. I also thought it would allow to remove op_array->brk_cont_array completely, but it's also used for exception handling. :( Thanks. Dmitry. Derick Rethans wrote: On Thu, 18 Nov 2010, D

Re: [PHP-DEV] Re: break/continue $var

2010-11-18 Thread Patrick ALLAERT
2010/11/18 Derick Rethans : > On Thu, 18 Nov 2010, Dmitry Stogov wrote: > >> Previously we decided to remove "break/continue $var" syntax. >> I even implemented it in PHP6 brunch, however it wasn't backported into >> trunk. Could I do it? > > Is there a really good reason to remove it? Not sure, b

Re: [PHP-DEV] Re: break/continue $var

2010-11-18 Thread Ferenc Kovacs
On Thu, Nov 18, 2010 at 3:39 PM, Derick Rethans wrote: > On Thu, 18 Nov 2010, Dmitry Stogov wrote: > > > Previously we decided to remove "break/continue $var" syntax. > > I even implemented it in PHP6 brunch, however it wasn't backported into > > trunk. Could I do it? > > Is there a really good r

[PHP-DEV] Re: break/continue $var

2010-11-18 Thread Derick Rethans
On Thu, 18 Nov 2010, Dmitry Stogov wrote: > Previously we decided to remove "break/continue $var" syntax. > I even implemented it in PHP6 brunch, however it wasn't backported into > trunk. Could I do it? Is there a really good reason to remove it? regards, Derick -- http://derickrethans.nl | ht