220 31248 <CAL52Aas+Lakw+k71=P6o5SedAMpmDTk30szNeozayfj71NJJuw@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Giovanni Piero Deretta <gpderetta@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: P0534: call/cc, type safety and exceptions
Date: Wed, 1 Mar 2017 12:14:55 +0000
Lines: 106
Approved: news@gmane.org
Message-ID: <CAL52Aas+Lakw+k71=P6o5SedAMpmDTk30szNeozayfj71NJJuw@mail.gmail.com>
References: <fc546ea4-a355-4a60-a7e7-97927993471d@isocpp.org>
 <3a57e294-7254-4358-828d-c9f7757f5295@isocpp.org> <9deccbda-26ca-4ad8-a579-1feb674676a6@isocpp.org>
 <CA+wfc19hFNcyjVn=oiFn+rf=zUYYyxjmZ-Zp-wDiK2n61DqeaA@mail.gmail.com>
 <69ee11fb-5cd0-4e1e-8c61-2792fe062003@isocpp.org> <CA+wfc18uQYCsx7cRrg5VhkQYCU8RXFys3DV9j=7Xuww2nOtePA@mail.gmail.com>
 <7209130d-c572-4097-94a7-d92dcef0f354@isocpp.org> <0705083b-2e6f-46e9-b624-26ca0b9894ea@isocpp.org>
 <7bad6d77-7385-462d-9d10-4774bf97ae88@isocpp.org> <a880928c-208a-4f30-8967-bf29fac87bf2@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11479308be05580549aa4218
X-Trace: blaine.gmane.org 1488370503 8298 195.159.176.226 (1 Mar 2017 12:15:03 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 1 Mar 2017 12:15:03 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDEP3I7TGEIMD5W2YUCRUBHPGG7PA@isocpp.org Wed Mar 01 13:14:58 2017
Return-path: <std-proposals+bncBDEP3I7TGEIMD5W2YUCRUBHPGG7PA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-io0-f197.google.com ([209.85.223.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDEP3I7TGEIMD5W2YUCRUBHPGG7PA@isocpp.org>)
	id 1cj39h-00015j-0K
	for gclcip-std-proposals@m.gmane.org; Wed, 01 Mar 2017 13:14:53 +0100
Original-Received: by mail-io0-f197.google.com with SMTP id z13sf10529101iof.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 01 Mar 2017 04:14:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=gZgB7Dyv9G0YXrvgjCvaNPIvxFMZS7gxaDF67tHKLvY=;
        b=2ROC/8c0AWykAXpMvK0vkXOthN7w9gBVzbxduT4c4rbVAYiIM4PIDWlKvyXl5CgZRT
         9ULifig/gfPbofoM6yavnIz6u42mlCGqv7lxx3RzJlp+FOVg9R2Oyk1tT5hvQ19KNoCY
         jLt/aafHpeKeQz1OspUWJ9qDqe5VwTcub6swD0sMdg18cARJmLdCNBPtbB6ZXuY/Xrhx
         Up5W4ZJCof887Z1QLqSQnrqfNhXEeo2hPiXRYsKCEpCb8pkHsSmduIPdV1Qxk7Wf2u21
         Jg1qW+W/yKPrv7n1Gs+URu4SV4cn2RyCPcgMk6OGO7bQL04K1XgApKZigwK5xPUq2HxP
         iIIw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=gZgB7Dyv9G0YXrvgjCvaNPIvxFMZS7gxaDF67tHKLvY=;
        b=SysPut1ZcboX2pXkCKAxlG1Xy78CLBAwBeDg+HgMGEgCg2YZZoeM+fJgCCqXAYL9dr
         W5sOXhNSRjWT9UP+SFe0/Leg8BuqHqw7gZCEaiO5lqdo8TnZDyalHH0w3g8sYEqKH0vS
         UrAOFf7SQ4vDTuTSq0+qp+W800Z4cxk3dDb0EtZR7vqGaV9U449jYZspGCprgCwRt+j+
         vJ4XgFB/xGufHlBGN62YOPXqxa3uNSNPu2BLgZbOtMAo5pYCLQtcE/dZOyRocuo/52Kk
         9uQmPucU+nD+/Aoby40oyfIU4IeYPDGzvw5Ow4dTINppcSLvAmAFU3ClCoHs1m7iGxnT
         qJTQ==
X-Gm-Message-State: AMke39lIC7p8fb3ErHDC/WRBEcx8uyJpze10pDM+flLZunGXMsCeeYEDjshE5XpFCsJf3w==
X-Received: by 10.36.57.65 with SMTP id l62mr917826ita.9.1488370498843;
        Wed, 01 Mar 2017 04:14:58 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.50.71 with SMTP id j68ls3670827ita.12.canary-gmail; Wed, 01
 Mar 2017 04:14:57 -0800 (PST)
X-Received: by 10.107.59.205 with SMTP id i196mr7962108ioa.114.1488370497064;
        Wed, 01 Mar 2017 04:14:57 -0800 (PST)
Original-Received: from mail-it0-x233.google.com (mail-it0-x233.google.com. [2607:f8b0:4001:c0b::233])
        by mx.google.com with ESMTPS id d22si16710190itb.121.2017.03.01.04.14.57
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 01 Mar 2017 04:14:57 -0800 (PST)
Received-SPF: pass (google.com: domain of gpderetta@gmail.com designates 2607:f8b0:4001:c0b::233 as permitted sender) client-ip=2607:f8b0:4001:c0b::233;
Original-Received: by mail-it0-x233.google.com with SMTP id h10so95480915ith.1
        for <std-proposals@isocpp.org>; Wed, 01 Mar 2017 04:14:57 -0800 (PST)
X-Received: by 10.36.59.7 with SMTP id c7mr4053067ita.43.1488370496558; Wed,
 01 Mar 2017 04:14:56 -0800 (PST)
Original-Received: by 10.79.33.67 with HTTP; Wed, 1 Mar 2017 04:14:55 -0800 (PST)
Original-Received: by 10.79.33.67 with HTTP; Wed, 1 Mar 2017 04:14:55 -0800 (PST)
In-Reply-To: <a880928c-208a-4f30-8967-bf29fac87bf2@isocpp.org>
X-Original-Sender: gpderetta@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 gpderetta@gmail.com designates 2607:f8b0:4001:c0b::233 as permitted sender)
 smtp.mailfrom=gpderetta@gmail.com;       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:31248
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31248>

--001a11479308be05580549aa4218
Content-Type: text/plain; charset=UTF-8

On 1 Mar 2017 12:08 pm, "'Oleg Ageev' via ISO C++ Standard - Future
Proposals" <std-proposals@isocpp.org> wrote:



On Wednesday, March 1, 2017 at 3:03:17 PM UTC+3, Giovanni Piero Deretta
wrote:
>
> you have the same issue if the lambda moves the continuation to a local
> variable, takes it by value instead of reference, or pass it to another
> function by value, etc....
>
continuation is movable only object, how it can be taked by value?



One does not exclude the other:
 Continuation x;
[](Continuation c) {....} (std::move(x)); //look ma, no copies!

-- 
You received this message because you are subscribed to a topic in the
Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this topic, visit https://groups.google.com/a/
isocpp.org/d/topic/std-proposals/F-8aMUBPMzc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/
isocpp.org/d/msgid/std-proposals/a880928c-208a-4f30-
8967-bf29fac87bf2%40isocpp.org
<https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/a880928c-208a-4f30-8967-bf29fac87bf2%40isocpp.org?utm_medium=email&utm_source=footer>
..

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAL52Aas%2BLakw%2Bk71%3DP6o5SedAMpmDTk30szNeozayfj71NJJuw%40mail.gmail.com.

--001a11479308be05580549aa4218
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><div class=3D"gmail_extra"><br><div class=3D"gma=
il_quote">On 1 Mar 2017 12:08 pm, &quot;&#39;Oleg Ageev&#39; via ISO C++ St=
andard - Future Proposals&quot; &lt;<a href=3D"mailto:std-proposals@isocpp.=
org">std-proposals@isocpp.org</a>&gt; wrote:<br type=3D"attribution"><block=
quote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid=
;padding-left:1ex"><div dir=3D"ltr"><div class=3D"quoted-text"><br><br>On W=
ednesday, March 1, 2017 at 3:03:17 PM UTC+3, Giovanni Piero Deretta wrote:<=
blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border=
-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">you have the same i=
ssue if the lambda moves the continuation to a local variable, takes it by =
value instead of reference, or pass it to another function by value, etc...=
..<br></div></blockquote></div><div>continuation is movable only object, how=
 it can be taked by value?<br>=C2=A0</div></div></blockquote></div></div></=
div><div dir=3D"auto"><br></div><div dir=3D"auto">One does not exclude the =
other:</div><div dir=3D"auto">=C2=A0Continuation x;</div><div dir=3D"auto">=
[](Continuation c) {....} (std::move(x)); //look ma, no copies!</div><div d=
ir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_extra"><div cla=
ss=3D"gmail_quote"><blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><div class=3D"quoted-text">

<p></p>

-- <br>
You received this message because you are subscribed to a topic in the Goog=
le Groups &quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this topic, visit <a href=3D"https://groups.google.com/=
a/isocpp.org/d/topic/std-proposals/F-8aMUBPMzc/unsubscribe" target=3D"_blan=
k">https://groups.google.com/a/<wbr>isocpp.org/d/topic/std-<wbr>proposals/F=
-8aMUBPMzc/<wbr>unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href=
=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_blank">std-prop=
osals+unsubscribe@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br></div>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/a880928c-208a-4f30-8967-bf29fac87bf2%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposals/a880=
928c-208a-4f30-<wbr>8967-bf29fac87bf2%40isocpp.org</a><wbr>.<br>
</blockquote></div><br></div></div></div>

<p></p>

-- <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 <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAL52Aas%2BLakw%2Bk71%3DP6o5SedAMpmDT=
k30szNeozayfj71NJJuw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoote=
r">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAL52Aas%2B=
Lakw%2Bk71%3DP6o5SedAMpmDTk30szNeozayfj71NJJuw%40mail.gmail.com</a>.<br />

--001a11479308be05580549aa4218--

.
