Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20936 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80870 invoked by uid 1010); 1 Dec 2005 08:29:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80855 invoked from network); 1 Dec 2005 08:29:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2005 08:29:12 -0000 X-Host-Fingerprint: 194.109.193.120 unknown Linux 2.4/2.6 Received: from ([194.109.193.120:39246] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id B5/9A-14828-854BE834 for ; Thu, 01 Dec 2005 03:29:12 -0500 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id EBD9C1874C9; Thu, 1 Dec 2005 09:29:10 +0100 (CET) Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (moulin [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02890-14; Thu, 1 Dec 2005 09:29:09 +0100 (CET) Received: from [192.168.1.16] (bspr.xs4all.nl [194.109.161.228]) by mx1.moulin.nl (Postfix) with ESMTP id 818D018719C; Thu, 1 Dec 2005 09:29:09 +0100 (CET) Message-ID: <438EB452.30806@iamjochem.com> Date: Thu, 01 Dec 2005 09:29:06 +0100 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sara Golemon Cc: internals@lists.php.net References: <2B.E1.14828.4130D834@pb1.pair.com> <000001c5f584$77823f80$e902a8c0@thinkpad> <002c01c5f5bf$f55e8c20$7d051fac@stumpy> <438DD0A3.6000908@iamjochem.com> <008501c5f603$ba2e04c0$7d051fac@stumpy> In-Reply-To: <008501c5f603$ba2e04c0$7d051fac@stumpy> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at moulin.nl Subject: Re: [PHP-DEV] Labeled Break (nothing at all whatsoever to do withGOTO) From: jochem@iamjochem.com (Jochem Maas) thanks for the explanation Sara, :-), as always your manner and ideas are an example to the 'php core', 'we' (they) are lucky to have you :-) Sara Golemon wrote: >> 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:? >> >> > LABEL: while(1) { >> /* ..etc */ >> ?> >> >> > LABEL: >> while(1) { >> /* ..etc */ >> ?> >> > PHP's parser gives no importance to whitespace, so yes, these two are > identical. > > In the dual-purpose vision I had for these labels, all labels would be > usable as GOTO targets. Labels which are followed *immediately* by a > break container construct (for, foreach, while, do-while, switch) would > also be usable as break/continue targets. > > Note that in these example, goto LABEL; and continue lABEL; are *not* > the same statement. Goto would restart state loops such as for() and > foreach() from initial positions. > > -Sara