Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20909 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33588 invoked by uid 1010); 30 Nov 2005 21:20:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33572 invoked from network); 30 Nov 2005 21:20:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2005 21:20:02 -0000 X-Host-Fingerprint: 194.109.253.196 mediawave.xs4all.nl Received: from ([194.109.253.196:26014] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FB/FE-14828-2871E834 for ; Wed, 30 Nov 2005 16:20:02 -0500 Message-ID: To: internals@lists.php.net Date: Wed, 30 Nov 2005 22:20:44 +0100 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <2B.E1.14828.4130D834@pb1.pair.com> <000001c5f584$77823f80$e902a8c0@thinkpad> <002c01c5f5bf$f55e8c20$7d051fac@stumpy> <438DD0A3.6000908@iamjochem.com> In-Reply-To: <438DD0A3.6000908@iamjochem.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 194.109.253.196 Subject: Re: [PHP-DEV] Labeled Break (nothing at all whatsoever to do withGOTO) From: bart@mediawave.nl (Bart de Boer) > devils advocate: > what happens when I want to place a 'goto' label just before a while or > foreach > loop (upon which I haven't put a label)? I ask because I assume that the > following 2 > statements should be identical no:? > I think there would be no such thing as a 'goto' or 'break' label. There would be just labels. You could use them with 'goto' and/or 'break' together: goto LABEL: ... LABEL:while (cond) { if (cond) break LABEL; }