220 3587 <515FC3B0.2090803@gmail.com> article
Path: news.gmane.org!not-for-mail
From: Reverend Chip <rev.chip@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: "break break ;" etc. to break out of nested loops
Date: Fri, 05 Apr 2013 23:41:52 -0700
Lines: 28
Approved: news@gmane.org
Message-ID: <515FC3B0.2090803@gmail.com>
References: <1f964e4b-2762-43b8-85e5-41392926b07a@isocpp.org> <CAOHCbiuv0zLyEu-7RJR9rLzs-zwQRrxbkYjfO3jHTJj2GrGgYQ@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1365269411 28066 80.91.229.3 (6 Apr 2013 17:30:11 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 6 Apr 2013 17:30:11 +0000 (UTC)
Cc: Tony V E <tvaneerd@gmail.com>
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCVIJ4NMUIKRBOEH76FAKGQEKOIXBJI@isocpp.org Sat Apr 06 19:30:09 2013
Return-path: <std-proposals+bncBCVIJ4NMUIKRBOEH76FAKGQEKOIXBJI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ia0-f199.google.com ([209.85.210.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCVIJ4NMUIKRBOEH76FAKGQEKOIXBJI@isocpp.org>)
	id 1UOWtC-0007kr-Vt
	for gclcip-std-proposals@m.gmane.org; Sat, 06 Apr 2013 19:26:55 +0200
Original-Received: by mail-ia0-f199.google.com with SMTP id o25sf16582577iad.2
        for <gclcip-std-proposals@m.gmane.org>; Sat, 06 Apr 2013 10:26:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-received:x-beenthere:x-received:received-spf:x-received
         :message-id:date:from:user-agent:mime-version:to:cc:subject
         :references:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=Y6eVzzq6KxHcExd7/+YKynMpTzbTjrSP5ZD3xSN9TmI=;
        b=oZ/i6A6wlXpGCUxcScFCzGADRGo9px87sTDy1Z02NjgF409pxgO3jrPt5o5IhsAMMg
         cFrIGAm9yAlxjoS9r3F7nvKr3DWZL9l6I7RluJRimN5/pi6V4IWlen/mt57x7ng6xG9m
         3VAKRKUTAdZ3DBkugS4BDALAs3t4mS6nl3EsLVZsvEhJ/ZfNj9bOp26XHNJr1dnMLKcz
         oZz1zd2k7bF0QTV7yIuGnr9bKx1VS5D0boL4UN7xDQPzTyNnfSwCT06VrBgDML9B5Dww
         WOlzsh4vT9qZHgYrBGx85/fDoTsFSeBjrZ9cr/qejuKTlW 
X-Received: by 10.42.55.19 with SMTP id t19mr9786831icg.31.1365230521009;
        Fri, 05 Apr 2013 23:42:01 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.171.102 with SMTP id at6ls1049051igc.19.gmail; Fri, 05 Apr
 2013 23:41:59 -0700 (PDT)
X-Received: by 10.68.125.169 with SMTP id mr9mr18226769pbb.74.1365230519112;
        Fri, 05 Apr 2013 23:41:59 -0700 (PDT)
Original-Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49])
        by mx.google.com with ESMTPS id eh10si2654763pac.318.2013.04.05.23.41.59
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 05 Apr 2013 23:41:59 -0700 (PDT)
Received-SPF: pass (google.com: domain of rev.chip@gmail.com designates 209.85.220.49 as permitted sender) client-ip=209.85.220.49;
Original-Received: by mail-pa0-f49.google.com with SMTP id kp14so2361715pab.8
        for <std-proposals@isocpp.org>; Fri, 05 Apr 2013 23:41:59 -0700 (PDT)
X-Received: by 10.66.150.165 with SMTP id uj5mr18993654pab.37.1365230519026;
        Fri, 05 Apr 2013 23:41:59 -0700 (PDT)
Original-Received: from [192.168.11.121] ([76.197.4.249])
        by mx.google.com with ESMTPS id in5sm17341615pbc.20.2013.04.05.23.41.54
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 05 Apr 2013 23:41:57 -0700 (PDT)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
In-Reply-To: <CAOHCbiuv0zLyEu-7RJR9rLzs-zwQRrxbkYjfO3jHTJj2GrGgYQ@mail.gmail.com>
X-Original-Sender: rev.chip@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of rev.chip@gmail.com designates 209.85.220.49 as permitted sender)
 smtp.mail=rev.chip@gmail.com;       dkim=pass header.i=@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:3587
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/3587>

On 4/5/2013 3:23 PM, Tony V E wrote:
> label: for (;;)
> {
>    break label;
> }

Yes, please; if this must be done, this is the way.  It's one of the
things that's actually worth borrowing from Perl.  The label is
semantically useful, and not brittle if another level is added.  Thus:

    line:
      while (cin >> s) {
          ...
          if (COND) continue line;
          ...
      }


-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.



.
