220 5041 <da0215e9-2960-412b-a5f2-29f5271ca835@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Mikhail Semenov <mikhailsemenov1957@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Require that this should be always caputred by copy.
Date: Sat, 15 Jun 2013 05:28:55 -0700 (PDT)
Lines: 64
Approved: news@gmane.org
Message-ID: <da0215e9-2960-412b-a5f2-29f5271ca835@isocpp.org>
References: <51bf2631-aed7-4433-b16d-15ee15e87f29@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_1106_8050577.1371299335036"
X-Trace: ger.gmane.org 1371299337 31294 80.91.229.3 (15 Jun 2013 12:28:57 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 15 Jun 2013 12:28:57 +0000 (UTC)
Cc: tomaszkam@gmail.com
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDC55PNFRYGRBCF46GGQKGQEDCHW32I@isocpp.org Sat Jun 15 14:28:58 2013
Return-path: <std-proposals+bncBDC55PNFRYGRBCF46GGQKGQEDCHW32I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vc0-f198.google.com ([209.85.220.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDC55PNFRYGRBCF46GGQKGQEDCHW32I@isocpp.org>)
	id 1UnpbF-00064R-Cd
	for gclcip-std-proposals@m.gmane.org; Sat, 15 Jun 2013 14:28:57 +0200
Original-Received: by mail-vc0-f198.google.com with SMTP id hf12sf1792680vcb.9
        for <gclcip-std-proposals@m.gmane.org>; Sat, 15 Jun 2013 05:28:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:date:from:to:cc:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-google-group-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe:content-type;
        bh=QVY5yP0sffGtuvrrGR9kbb1M/sGNs4moVmvesg413JA=;
        b=nZ9a7psqBNIPZ9MxQLcjiGDqZHaVN73L7oqUCErQYTHqiiHqZ5LJVgqnLG5avgss1k
         S9yu9ZPez0Nf5SlYwM82bxqn1VtDLvLz+dTA4Gu8XTV2BFCigeX5QTPZnGkI+aUF39t0
         2jk/JkFJvQwgcbojxPeBvgoxwslMdmw4PwsKtZ5tSkU0EWQRccRSShKjMhZGTVEs99n7
         pXlJCP26SPsMGSu/MIhZFbebWmYWvqYStMoCxUuC2s6iRX1SUGIdNAm4bGQ1gS2f5jj6
         F23HqTehRqcSODje8v4pKala599eC1bt0PbX0voLrkwmDm4DpIdtsfXYuAhjv0lAVnau
         96SA==
X-Received: by 10.224.42.141 with SMTP id s13mr3251574qae.3.1371299336490;
        Sat, 15 Jun 2013 05:28:56 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.3.105 with SMTP id b9ls567883qeb.34.gmail; Sat, 15 Jun 2013
 05:28:55 -0700 (PDT)
X-Received: by 10.49.36.199 with SMTP id s7mr187740qej.17.1371299335390;
        Sat, 15 Jun 2013 05:28:55 -0700 (PDT)
In-Reply-To: <51bf2631-aed7-4433-b16d-15ee15e87f29@isocpp.org>
X-Original-Sender: mikhailsemenov1957@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>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:5041
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/5041>

------=_Part_1106_8050577.1371299335036
Content-Type: text/plain; charset=ISO-8859-1

The point is that *this *is a keyword not an identifier. 
In section 2.1.2, *this* is listed among the keywords. In section 5.1.2, 
when the capture is defined, it allows identifies, &identifies and *this*.
That's why *&this* is not allowed.
 
Here are the sections of the standard:
 
*2.12 Keywords.*

*5.1.2* Lambda Expressions
*capture:
     identifier
    & identifier
    this*
 

 

-- 

--- 
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/.



------=_Part_1106_8050577.1371299335036
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>The point is that <strong><em>this </em></strong>is a keyword not an i=
dentifier. </div><div>In section 2.1.2, <strong><em>this</em></strong> is l=
isted among the keywords. In section 5.1.2, when the capture is defined, it=
 allows identifies, &amp;identifies and <strong><em>this</em></strong>.</di=
v><div>That's why <strong>&amp;this</strong> is not allowed.</div><div>&nbs=
p;</div><div>Here are the sections of the standard:</div><div>&nbsp;</div><=
div><strong>2.12 Keywords.</strong></div><div><br><strong>5.1.2</strong> La=
mbda Expressions</div><div><strong>capture:<br>&nbsp;&nbsp;&nbsp;&nbsp; ide=
ntifier<br>&nbsp;&nbsp;&nbsp; &amp; identifier<br>&nbsp;&nbsp;&nbsp; this</=
strong></div><div>&nbsp;</div><div><br>&nbsp;</div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_1106_8050577.1371299335036--

.
