Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_globals.h zend_language_parser.y /tests break_label01.phpt
break_label02.phpt break_label03.phpt break_label04.phpt break_label05.phpt break_label06.phpt break_label07.phpt break_label08.inc break_label08.phpt
break_label09.phpt php-src NEWS

From: Date: Sat, 04 Mar 2006 00:39:44 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_globals.h zend_language_parser.y /tests break_label01.phpt
break_label02.phpt break_label03.phpt break_label04.phpt break_label05.phpt break_label06.phpt break_label07.phpt break_label08.inc break_label08.phpt
break_label09.phpt php-src NEWS
References: 1 2  Groups: php.zend-engine.cvs 
Request: Send a blank email to [email protected] to get a copy of this message
On Fri, 3 Mar 2006, Marcus Boerger wrote:

> Hello Dmitry,
> 
>  the code is the opposite of our beloved KISS approach. When i read:
> 
>   Label: while(1) { break Label; }
> 
> i clearly expect an endless loop, guess why?

It doesn't? I would expect the break Label to jump to the Label too. I 
don't quite see the point of those labelled breaks in the first place... 
wasn't the idea to use "labelled breaks" as some form of a jump 
instruction? (Like we discussed in Paris)

Derick
-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org


Thread (28 messages)

« previous php.zend-engine.cvs (#4659) next »