Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22179 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72171 invoked by uid 1010); 7 Mar 2006 09:48:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72156 invoked from network); 7 Mar 2006 09:48:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2006 09:48:22 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:58479] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A2/52-22029-5E65D044 for ; Tue, 07 Mar 2006 04:48:21 -0500 Received: from [192.168.200.106] (c-24-6-5-134.hsd1.ca.comcast.net [24.6.5.134]) (authenticated bits=0) by colo.lerdorf.com (8.13.5/8.13.5/Debian-3) with ESMTP id k279mGbe016177; Tue, 7 Mar 2006 01:48:17 -0800 Message-ID: <440D56E0.9050200@lerdorf.com> Date: Tue, 07 Mar 2006 01:48:16 -0800 User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Michael Wallner CC: internals@lists.php.net References: <000001c641c9$80dbfad0$6e02a8c0@thinkpad> <11.E1.22029.BE55D044@pb1.pair.com> In-Reply-To: <11.E1.22029.BE55D044@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL From: rasmus@lerdorf.com (Rasmus Lerdorf) Michael Wallner wrote: > Dmitry Stogov wrote: > >> 1) goto and break label > +0 > >> 3) break label only (like Java) > +1 You do realize that this is: label: while(condition) { break 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. -Rasmus