[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, 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


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



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 always goto instead.
On Nov 19, 2010 12:21 AM, Patrick ALLAERT patrick.alla...@gmail.com
wrote:
 2010/11/18 Derick Rethans der...@php.net:
 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, but at least, it is in *your* release notes :-)
 http://www.php.net/~derick/meeting-notes.html#break-var

 --
 PHP Internals - PHP Runtime Development Mailing List
 To unsubscribe, visit: http://www.php.net/unsub.php



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 always goto instead.
On Nov 19, 2010 12:21 AM, Patrick ALLAERT patrick.alla...@gmail.com
wrote:
 2010/11/18 Derick Rethans der...@php.net:
 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, but at least, it is in *your* release notes :-)
 http://www.php.net/~derick/meeting-notes.html#break-var

 --
 PHP Internals - PHP Runtime Development Mailing List
 To unsubscribe, visit: http://www.php.net/unsub.php



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 dmi...@zend.com 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 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, 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

 --
 PHP Internals - PHP Runtime Development Mailing List
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[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 | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



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

2010-11-18 Thread Ferenc Kovacs
On Thu, Nov 18, 2010 at 3:39 PM, Derick Rethans der...@php.net 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 reason to remove it?


Should be, otherwise I can't see why would you decided to remove it in the
first place.
I think this was because you can do the same with the new shiny goto syntax,
but I'm just guessing here.

Tyrael


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

2010-11-18 Thread Patrick ALLAERT
2010/11/18 Derick Rethans der...@php.net:
 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, but at least, it is in *your* release notes :-)
http://www.php.net/~derick/meeting-notes.html#break-var

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php