220 31361 <26EDCD88-C4FB-47F3-BF21-38D980966CA8@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Bryce Glover <randomdsdevel@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: P0534: call/cc, type safety and exceptions
Date: Thu, 2 Mar 2017 17:21:09 -0500
Lines: 99
Approved: news@gmane.org
Message-ID: <26EDCD88-C4FB-47F3-BF21-38D980966CA8@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_E8270D97-9EF4-4594-9397-D27C3C93C4E5"
X-Trace: blaine.gmane.org 1488493277 25820 195.159.176.226 (2 Mar 2017 22:21:17 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 2 Mar 2017 22:21:17 +0000 (UTC)
Cc: std-proposals@isocpp.org
To: Bengt Gustafsson <bengt.gustafsson@beamways.com>
Original-X-From: std-proposals+bncBCPMBF5ZZEBBBWVV4LCQKGQEEU2KGZA@isocpp.org Thu Mar 02 23:21:10 2017
Return-path: <std-proposals+bncBCPMBF5ZZEBBBWVV4LCQKGQEEU2KGZA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f200.google.com ([209.85.161.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCPMBF5ZZEBBBWVV4LCQKGQEEU2KGZA@isocpp.org>)
	id 1cjZ5y-00061L-8t
	for gclcip-std-proposals@m.gmane.org; Thu, 02 Mar 2017 23:21:10 +0100
Original-Received: by mail-yw0-f200.google.com with SMTP id 2sf144043312ywn.1
        for <gclcip-std-proposals@m.gmane.org>; Thu, 02 Mar 2017 14:21:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:subject:date:message-id:cc:to:mime-version: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=xsCVk7U+4aASBCO9UT3Le6Qhm7+zMrswC8h/SZ4n7Tw=;
        b=DIACU36iURwmV1ntQ3yi8cnyIgvIvhWvwHCH3x8toEX+Jl6hNv7th9VbEQGnTuhOTl
         DUMHx4ZwbFTBKtPCk1zabAMPR9x3vztBBFSMQO14OrWVCSRSsMHx6sNC6zowcg7GNhlw
         /1sL98QGvJzmSOM1p0i5gIJk4T2adPFlxunYqQfJkEhPWhdymzfXI1lwsjiM48McQVUA
         Wu5M38aAfHymwHmgf+/sYNNnF/CS2gDgPJLKCmEpK+ugEo92yRV7j5Z4ohL11jWC0S79
         jvKNEBrfJQZGpPXTkhi+lOyxeNVMcogXG09mUfyIaJKn9j74AQByKVWlmlGan5QR/9h4
         OQ0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:subject:date:message-id:cc:to:mime-version
         :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=xsCVk7U+4aASBCO9UT3Le6Qhm7+zMrswC8h/SZ4n7Tw=;
        b=nCdBoT9WWTTY9g+XcjGzY/wBlnPDAtPrwjPTjJboHpmoJ5/NgUIpbOCzq4+cDZrf2t
         rW3mp/fFMz8ilv2POC86CcRgKY3kE1iR8QgTSIFbP7SIn9psvtumEnGOQ4Dm2J0obMoG
         Du8BafcSge1WTRE2/UXgvkHIL0Vs1BpTKRN37HZfx0wHrTGolG9rPdte6W1E4jyOgESM
         FT0O6pOsTWva0LO4qmqjPSx06hL6uLf02ZZzjHN3vLdKD9Uux2fbO32pSZmp2+7a9X7p
         tnWVIHcsvw4UlSjpE8+pk3uQrgVn0SDCAM5J4FURZVCdvFznrs50raevVApx5RObWYGV
         R+sQ==
X-Gm-Message-State: AMke39ls75S41S8kk54SXbyNImdmF+BU0hAY1hG1nEfq5tSl2QgwHHZKpf524WqbJIB5SA==
X-Received: by 10.13.213.142 with SMTP id x136mr5635717ywd.113.1488493276054;
        Thu, 02 Mar 2017 14:21:16 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.11.222 with SMTP id 91ls2367770iol.41.gmail; Thu, 02 Mar
 2017 14:21:14 -0800 (PST)
X-Received: by 10.36.98.80 with SMTP id d77mr44102itc.99.1488493274615;
        Thu, 02 Mar 2017 14:21:14 -0800 (PST)
Original-Received: from mail-io0-x242.google.com (mail-io0-x242.google.com. [2607:f8b0:4001:c06::242])
        by mx.google.com with ESMTPS id k11si10441816iod.118.2017.03.02.14.21.14
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 02 Mar 2017 14:21:14 -0800 (PST)
Received-SPF: pass (google.com: domain of randomdsdevel@gmail.com designates 2607:f8b0:4001:c06::242 as permitted sender) client-ip=2607:f8b0:4001:c06::242;
Original-Received: by mail-io0-x242.google.com with SMTP id n76so9615128ioe.1
        for <std-proposals@isocpp.org>; Thu, 02 Mar 2017 14:21:14 -0800 (PST)
X-Received: by 10.107.39.20 with SMTP id n20mr68798ion.43.1488493274383;
        Thu, 02 Mar 2017 14:21:14 -0800 (PST)
Original-Received: from [10.0.1.11] (c-68-50-177-220.hsd1.in.comcast.net. [68.50.177.220])
        by smtp.gmail.com with ESMTPSA id k66sm145951itg.8.2017.03.02.14.21.13
        (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Thu, 02 Mar 2017 14:21:13 -0800 (PST)
X-Mailer: Apple Mail (2.3124)
X-Original-Sender: RandomDSdevel@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 randomdsdevel@gmail.com designates 2607:f8b0:4001:c06::242 as permitted
 sender) smtp.mailfrom=randomdsdevel@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:31361
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/31361>


--Apple-Mail=_E8270D97-9EF4-4594-9397-D27C3C93C4E5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8

On Thursday, March 2, 2017 at 4:43:30 AM UTC-5, Bengt Gustafsson wrote:
=E2=80=A6

A comment on the invoke_on_top_t functionality. Why add a special tag type =
just to be able to overload operator() to do another task when there is the=
 possibility to add a regular method: std::continuation::invoke_on_top(args=
....). Also it would be interesting to know when this rather strange functio=
nality is useful.

=E2=80=A6

     Just a small thought that I had while keeping tabs on this thread, eve=
n if only as a mailing-list lurker (for the most part, anyway;) but one use=
 case of something like `invoke_on_top_t` would be to implement a tail-recu=
rsive 'trampoline' function <https://en.wikipedia.org/wiki/Trampoline_(comp=
uting)>. =20

=E2=80=94=E2=80=89Bryce Glover
=E3=80=80=E2=80=89RandomDSdevel@gmail.com

--=20
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 e=
mail 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/26EDCD88-C4FB-47F3-BF21-38D980966CA8%40gmail.com=
..

--Apple-Mail=_E8270D97-9EF4-4594-9397-D27C3C93C4E5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;" class=3D""><span style=3D"col=
or: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: =
13px; background-color: rgb(255, 255, 255);" class=3D"">On Thursday, March =
2, 2017 at 4:43:30 AM UTC-5, Bengt Gustafsson wrote:</span><br style=3D"col=
or: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: =
13px;" class=3D""><blockquote class=3D"gmail_quote" style=3D"color: rgb(34,=
 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: 13px; margi=
n: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 2=
04, 204); border-left-style: solid; padding-left: 1ex;"><div dir=3D"ltr" st=
yle=3D"margin: 0px; padding: 0px; border: 0px;" class=3D"">=E2=80=A6<br cla=
ss=3D""><div style=3D"margin: 0px; padding: 0px; border: 0px;" class=3D""><=
br class=3D""></div><div style=3D"margin: 0px; padding: 0px; border: 0px;" =
class=3D"">A comment on the invoke_on_top_t functionality. Why add a specia=
l tag type just to be able to overload operator() to do another task when t=
here is the possibility to add a regular method: std::continuation::invoke_=
on_<wbr class=3D"">top(args...). Also it would be interesting to know when =
this rather strange functionality is useful.</div><div style=3D"margin: 0px=
; padding: 0px; border: 0px;" class=3D""><br class=3D""></div><div style=3D=
"margin: 0px; padding: 0px; border: 0px;" class=3D"">=E2=80=A6</div></div><=
/blockquote><div style=3D"margin: 0px; padding: 0px; border: 0px; color: rg=
b(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: 13px;"=
 class=3D""><br class=3D""></div><div style=3D"margin: 0px; padding: 0px; b=
order: 0px; color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-ser=
if; font-size: 13px;" class=3D"">&nbsp; &nbsp; &nbsp;Just a small thought t=
hat I had while keeping tabs on this thread, even if only as a mailing-list=
 lurker (for the&nbsp;<i class=3D"">most</i>&nbsp;part, anyway;) but&nbsp;<=
i class=3D"">one</i>&nbsp;use case of something like `invoke_on_top_t` woul=
d be to implement a tail-recursive&nbsp;<a href=3D"https://en.wikipedia.org=
/wiki/Trampoline_(computing)" style=3D"margin: 0px; padding: 0px; border: 0=
px; text-decoration: none; color: rgb(102, 17, 204); cursor: text;" class=
=3D"">'trampoline' function</a>. &nbsp;</div><div style=3D"margin: 0px; pad=
ding: 0px; border: 0px; color: rgb(34, 34, 34); font-family: Arial, Helveti=
ca, sans-serif; font-size: 13px;" class=3D""><br class=3D""></div><div styl=
e=3D"margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-f=
amily: Arial, Helvetica, sans-serif; font-size: 13px;" class=3D""><div styl=
e=3D"margin: 0px; padding: 0px; border: 0px;" class=3D"">=E2=80=94=E2=80=89=
Bryce Glover</div><div style=3D"margin: 0px; padding: 0px; border: 0px;" cl=
ass=3D"">=E3=80=80=E2=80=89<a href=3D"mailto:RandomDSdevel@gmail.com" class=
=3D"">RandomDSdevel@gmail.com</a></div></div></body></html>

<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/26EDCD88-C4FB-47F3-BF21-38D980966CA8%=
40gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/26EDCD88-C4FB-47F3-BF21-38D980966CA8%=
40gmail.com</a>.<br />

--Apple-Mail=_E8270D97-9EF4-4594-9397-D27C3C93C4E5--

.
