Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21951 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16132 invoked by uid 1010); 20 Feb 2006 09:06:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16106 invoked from network); 20 Feb 2006 09:06:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2006 09:06:24 -0000 X-Host-Fingerprint: 213.136.52.68 mailgate-out2.mysql.com Linux 2.5 (sometimes 2.4) (4) Received: from ([213.136.52.68:43866] helo=mailgate.mysql.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D3/28-45151-D8689F34 for ; Mon, 20 Feb 2006 04:06:21 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.mysql.com (8.13.4/8.13.4) with ESMTP id k1K96Hr7013375; Mon, 20 Feb 2006 10:06:17 +0100 Received: from mail.mysql.com ([10.222.1.99]) by localhost (mailgate.mysql.com [10.222.1.98]) (amavisd-new, port 10026) with LMTP id 11724-03; Mon, 20 Feb 2006 10:06:17 +0100 (CET) Received: from [10.100.64.53] (10-100-64-53.mysql.internal [10.100.64.53]) by mail.mysql.com (8.13.3/8.13.3) with ESMTP id k1K969Ra023447 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Feb 2006 10:06:11 +0100 Message-ID: <43F9867E.5020504@php.net> Date: Mon, 20 Feb 2006 10:06:06 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0 MIME-Version: 1.0 To: Derick Rethans CC: Andi Gutmans , Steph Fox , internals References: <045701c634af$050b5df0$6402a8c0@foxbox> <7.0.1.0.2.20060218112459.03e617c0@zend.com> <04e401c634db$69a82ff0$6402a8c0@foxbox> <7.0.1.0.2.20060218144712.03e32c18@zend.com> <051f01c634de$45c12df0$6402a8c0@foxbox> <7.0.1.0.2.20060218145604.03e678a8@zend.com> <7.0.1.0.2.20060218161117.02a16628@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mailgate.mysql.com Subject: Re: [PHP-DEV] True labelled breaks From: hartmut@php.net (Hartmut Holzgraefe) Derick Rethans wrote: > I will use it. << that good enough? :) But seriously, I have quite a few > cases where I would use it if it was available. same here ... i tried to avoid the current "break n;" where ever possible as it is easy to run into a maintainance nightmare with it (renumbering! this is so 80ies BASIC ...), so i tend to use flag variables instead in cases where i need to terminate several nested loops. labeled breaks are *so* much better/cleaner than both approaches above that i'd really love to have them ... IMHO "break n;" is even more evil than "goto label;", it is almost in the same league as "goto linenumber;" ... -- Hartmut Holzgraefe, Senior Support Engineer . MySQL AB, www.mysql.com