220 4612 <CAGsORuB9UByzMkk8PZC67ByrvxKFmud51jgEZxWq31TAy8Zf=g@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Zhihao Yuan <lichray@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Changing lambda scope
Date: Sun, 26 May 2013 19:34:14 -0400
Lines: 32
Approved: news@gmane.org
Message-ID: <CAGsORuB9UByzMkk8PZC67ByrvxKFmud51jgEZxWq31TAy8Zf=g@mail.gmail.com>
References: <ae01f736-d3ac-48d6-981f-702b9ab2b3b3@isocpp.org>
	<CAFk2RUax65FEaDaeKCEdBig+bq4W4u_+39R3hsdBuyiOj-rpjA@mail.gmail.com>
	<90375ba5-8005-47da-9e84-eee151d0ba0a@isocpp.org>
	<CAFk2RUZzoT4HH8FYDJqVbj4dU+s9zUQRpYX9seprDSHDxF7U6w@mail.gmail.com>
	<CAOfiQqm2hNSOmxoSAxBSS0dL6fB=ZcbxHZDxhPD5Z_Q69hrghA@mail.gmail.com>
	<2e120ca5-740b-4301-8a32-8ac5035fa108@isocpp.org>
	<0df9d0d8-a752-4841-ba02-54780590f722@isocpp.org>
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 1369611257 28611 80.91.229.3 (26 May 2013 23:34:17 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 26 May 2013 23:34:17 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUILMGRQMARB6FXRKGQKGQEPJ76MPY@isocpp.org Mon May 27 01:34:18 2013
Return-path: <std-proposals+bncBCUILMGRQMARB6FXRKGQKGQEPJ76MPY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f198.google.com ([209.85.212.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUILMGRQMARB6FXRKGQKGQEPJ76MPY@isocpp.org>)
	id 1UgkS9-0004tN-Gi
	for gclcip-std-proposals@m.gmane.org; Mon, 27 May 2013 01:34:17 +0200
Original-Received: by mail-wi0-f198.google.com with SMTP id hr14sf1393600wib.9
        for <gclcip-std-proposals@m.gmane.org>; Sun, 26 May 2013 16:34:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:mime-version:in-reply-to:references:date:message-id
         :subject:from: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=vC5M9vVsJu+R0joC4dvBATO2tlCRRGdteLV1v9ty490=;
        b=aoDkgmEgNEOVXyBHXDVOtoNsOzfwYy53WE5Y+2Uam3tWocumukA1ZxX3L3iZe9MwlU
         t5ogRLxmdtLHlT2DJo466LLJCpDo8vYvMn2+xLvENAga6vAzcLXFzTEPJ/7twPmDwCNO
         3XoVMo6br8bGQF9cfb8U6DpAENrHZqKd0wsZBekdDcM5XJ0P6iBSj7rhn2IIRmMpcifH
         TrFGgW1iW6dUdnkeBkp6Q9jH+hT/myElL9DSXGw5cgAEth76DgDX5MJLmfF+cZCb1DbJ
         gegRsADDLWSOLW0P8JBKC0LtZYGV7QAQ4hENJfR8VRC5kgRw6y2iK3cUP838NsERoxVd
         6jZA==
X-Received: by 10.112.33.205 with SMTP id t13mr1371826lbi.13.1369611256638;
        Sun, 26 May 2013 16:34:16 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.87.201 with SMTP id ba9ls157734lab.54.gmail; Sun, 26 May
 2013 16:34:15 -0700 (PDT)
X-Received: by 10.112.235.102 with SMTP id ul6mr7478782lbc.10.1369611255154;
        Sun, 26 May 2013 16:34:15 -0700 (PDT)
Original-Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178])
        by mx.google.com with ESMTPS id f7si8226900lbe.286.2013.05.26.16.34.15
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sun, 26 May 2013 16:34:15 -0700 (PDT)
Received-SPF: pass (google.com: domain of lichray@gmail.com designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178;
Original-Received: by mail-lb0-f178.google.com with SMTP id w10so6106934lbi.23
        for <std-proposals@isocpp.org>; Sun, 26 May 2013 16:34:15 -0700 (PDT)
X-Received: by 10.112.218.102 with SMTP id pf6mr13078550lbc.77.1369611254885;
 Sun, 26 May 2013 16:34:14 -0700 (PDT)
Original-Received: by 10.112.158.233 with HTTP; Sun, 26 May 2013 16:34:14 -0700 (PDT)
In-Reply-To: <0df9d0d8-a752-4841-ba02-54780590f722@isocpp.org>
X-Original-Sender: lichray@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of lichray@gmail.com designates 209.85.217.178 as permitted sender)
 smtp.mail=lichray@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:4612
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4612>

On Sun, May 26, 2013 at 7:17 PM, Nicol Bolas <jmckesson@gmail.com> wrote:
> A lambda is nothing special; it's just shorthand notation for a type
> declared at that scope. We shouldn't have special-case language in the
> standard that says "if the local type is a lambda type, blah blah".

I don't agree.  Lambda is special, conceptually, as a language structure.
It's described in terms of a class / class template does not mean its
semantics has to be limited by class / class template.

> Also, this should include associated classes as well. So if you declare a
> local class within a member function of a class, it should be associated
> with that class and any classes that this class is associated with.

I have a strong premonition that this will make existing code
behavior differently...

--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/

-- 

--- 
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.



.
