Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10162 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70427 invoked by uid 1010); 28 May 2004 16:09:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70132 invoked from network); 28 May 2004 16:09:09 -0000 Received: from unknown (HELO smtp-out5.xs4all.nl) (194.109.24.6) by pb1.pair.com with SMTP; 28 May 2004 16:09:09 -0000 Received: from php.net (hetty.xs4all.nl [80.126.21.70]) by smtp-out5.xs4all.nl (8.12.10/8.12.10) with ESMTP id i4SG98UY049238 for ; Fri, 28 May 2004 18:09:09 +0200 (CEST) Message-ID: <40B76426.8080107@php.net> Date: Fri, 28 May 2004 18:09:10 +0200 User-Agent: Mozilla Thunderbird 0.5 (X11/20040306) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net X-Enigmail-Version: 0.83.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: switch labels in sub-blocks From: abies@php.net (Ard Biesheuvel) Hi all, is there a specific reason why nested blocks in switch statements are not supported ? It can be very useful if you want to jump into the middle of the first iteration of a loop (like fetching rows from a result set where the first row might or might not be already present) Eg. switch ($i) { case 0: do { // iteration default: } while ( /* some condition */ ); } -- Ard