Re: Re: GOTO and/or BREAK LABEL
| From: | Michael Wallner | Date: | Tue, 07 Mar 2006 09:56:23 +0000 |
| Subject: | Re: Re: GOTO and/or BREAK LABEL | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22180@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf wrote:
Michael Wallner wrote:Yes, but it's quite obvious to me if I replace the labeled break withDmitry Stogov wrote:You do realize that this is: label: while(condition) {1) goto and break label+03) break label only (like Java)+1break label;} As a C programmer this confuses me to no end. When I see "label:" I expect control to end up there and the loop to be executed again. I realize all the Java folks have gotten used to this, but I don't think I ever will.
break 1;
I'd expect continue label; to step into the loop again.
By the way, +0 does not mean -1 for goto.
Regards,
--
Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gz