220 37586 <CALmDwq1zuF95AfUZ9Mx23af+EFk-XaR7TwR01pc0tS_akgfeew@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicolas Lesser <blitzrakete@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: add the metafunction scope
Date: Sun, 01 Apr 2018 22:58:57 +0000
Lines: 90
Approved: news@gmane.org
Message-ID: <CALmDwq1zuF95AfUZ9Mx23af+EFk-XaR7TwR01pc0tS_akgfeew@mail.gmail.com>
References: <5e47cc81-4834-4a68-8925-717fb2ec8612@isocpp.org>
 <20180330054757.GA2396@noemi> <CANNXMwZMCpDOHj-e_mEmWQ37QEtmT_+to8oyDHUkiUjrpC4NFA@mail.gmail.com>
 <b8de3daf-019d-40e2-a039-082ca9c61c96@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000baf6ff0568d16b13"
X-Trace: blaine.gmane.org 1522623432 21372 195.159.176.226 (1 Apr 2018 22:57:12 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 1 Apr 2018 22:57:12 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDXKNLEUTADRBPOIQXLAKGQEQTVUWLY@isocpp.org Mon Apr 02 00:57:08 2018
Return-path: <std-proposals+bncBDXKNLEUTADRBPOIQXLAKGQEQTVUWLY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f70.google.com ([209.85.218.70])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDXKNLEUTADRBPOIQXLAKGQEQTVUWLY@isocpp.org>)
	id 1f2luN-0005NU-OZ
	for gclcip-std-proposals@m.gmane.org; Mon, 02 Apr 2018 00:57:07 +0200
Original-Received: by mail-oi0-f70.google.com with SMTP id l67-v6sf7913343oif.23
        for <gclcip-std-proposals@m.gmane.org>; Sun, 01 Apr 2018 15:59:10 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1522623549; cv=pass;
        d=google.com; s=arc-20160816;
        b=WIpZJXBhKsJ7jhWiQRjkMyNm0KPIiFTSD5t9Kf3y52NmPmg+bSRIF2Ee0dC5Yby0fF
         jZH6tm1Kx/tKg6fgDpZgcsIo0WlCVvVs35wx5Qkvaq49T8h4ZiaHOjperdCJb/ju00FC
         ESSUumV9HZfS8T2t42UAKBMO2/DHfp5nmZQXtTbT1MekJ1flne2iF2x2DWIfG31O16aX
         UEFm9xYAxA1EmNd003/9gchY5GB4ZJ2WXjRRHas/bPa3qVX89jS9bIgL+jCAqh8K4wBk
         QAC7rx0wmppDqMDYpVnH+Cfl6dJGVN/IQNot+AeaLmQ2nIzUmylGSaZ55eKaAUh/NItA
         n2zA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:in-reply-to:references:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=u13bzE5jnblLQvawk+AYKltzQkrqAD9n0wokw3iWbSo=;
        b=AU3bKdtLzucz8TEqaaUKPv0ZC77bLqdm2aVqQhulEPj5IgwVgsLC+G9wkTZg9KAto+
         9D6MZel/4lqVxuOD2U/WsvNUMOBIqrxVyPimO8c3bsiUCFrihEbh7tee2xEJnJv+b4xh
         LjyT1DY+oIhKlKlaYDx+Urt5tbpI4Gfhqz42KMbESnXYNR82tQAO/dHZyyhwoG6uOE55
         ApGczrmM2abBZYBXLxcReCsK+wheMLOueO5AZBdMtJ1OuZ1MYFL9mow3DxOIR2kYzH/J
         UXbR+fZG9jMXl3qY6oH8e7XCWwrvEaSwCmofaYLmc15oJCx7Pq2rQrfnYI7QIDUdkQnI
         p/yg==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=KU3Bkt0E;
       spf=pass (google.com: domain of blitzrakete@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=blitzrakete@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=u13bzE5jnblLQvawk+AYKltzQkrqAD9n0wokw3iWbSo=;
        b=Eo5rswoMTmvFffEy3fsTTcj9CnNMfEMF8jRrcMIzx7vGUeRwyi9rz4ENwn8hz25xVO
         BbNZTR3CL9OkfmERj+hu/XjoBMQeOQgQk05m56wTenFcOAqqQjpd+lBC3Wy/1BgLX6AS
         fXh+OjSpbR7JeFzKzgJINz7FaNZxJkmrackt1R9LUir4zqE7ZzgePqxFkPCGwmjGaEKd
         ewUSfY8UwWZ3upBczOsk8Tk2azQPk+ndNxV26gr4uA0TvvmIWeaDUeNwS85NlAulQvT5
         QeaRy+IBiwc7/72aNkL7scISvbE07zXoA0VG/2AM9TLTAfblgrvODh5QoekgNq27+767
         nnpg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to: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=u13bzE5jnblLQvawk+AYKltzQkrqAD9n0wokw3iWbSo=;
        b=cMV0iw1tanwEcmIDpYA8ESjyu6KRiNd4YIVeySemJkLUpbA2m9P2eSsDqLeb/zJGfO
         zlwf9von7DqPKDMED7n506GDUTllZZEz1yg/qaYZogFm16pLXv57qbKMItl6CeasRHUd
         jFPHCwzbcdSXr3bZAYgkuNQ9EVQZDvlyIvwmrrpsoPp9RvPSCrqIAoxeyO9AjZ7ObQfV
         rl5mkimhfC1kz0MeVlQcNyBOT5JjIVSWShJL4ia0+UgOzF0UN+FLYYYXTnUMOBTN/+vZ
         QrMEdjzcPuWf5EWdRHHMM+gg6YAhNhSYldZdotteCuWGq6LJ4oMLK1d8YVeAo9FUVe6q
         7HJA==
X-Gm-Message-State: ALQs6tCoj9FTibQrwelUR9uxxjZxcpzgVwrXzlrTOFdXVxwV6l3l9Mpj
	hiAby0m2JcEV3vU4RLe911TQ6g==
X-Google-Smtp-Source: AIpwx4843Sqf7nI+Oxa6+6V/xIg8l9RISddGDOLTVmXAguQpcsrFSUh6ey67r+oxfZbo+hM0WRkCEg==
X-Received: by 2002:aca:4a10:: with SMTP id x16-v6mr3224735oia.91.1522623549848;
        Sun, 01 Apr 2018 15:59:09 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a9d:5704:: with SMTP id p4-v6ls1796736oth.8.gmail; Sun, 01
 Apr 2018 15:59:08 -0700 (PDT)
X-Received: by 2002:a9d:3c55:: with SMTP id j21-v6mr4140634ote.51.1522623548875;
        Sun, 01 Apr 2018 15:59:08 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1522623548; cv=none;
        d=google.com; s=arc-20160816;
        b=QWJ2aObbffD0WPY7n9xllTQmfE6x2++8xR32rvXrOij+8D7/Q0HwubW/Aez6dc8rE5
         JOk3mtGAbD22/4ThJs7bno9BYnI60CTxmplaH9kYemi+cIsw+O6FkJ02I+cS5EbxCR8V
         UjSJ0TQYPh3m7D6HMvPwbQ5hXVrLRIkIo7qLwvyDBr06lCq8p4QDBYpRmRYCn8xtonDV
         y7qrdEj873pk48pTqk0d2tSFxK5pLtNUMf0xTou6EkW8rX/84v3x4i6X033Yo6bEWsJu
         s36XtFYyoNIUPzY/dUSBkOfxAAncdSrc7Lq3+devBQf5tG9L/l4eCoLnEvOF/x/2nxJj
         Zrww==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :dkim-signature:arc-authentication-results;
        bh=VLtR5FdYXmGZsa1M57bnEmxF2rLdKW4JhjtB8IqJb+I=;
        b=v1zhSdOUQXodGF82Y9HCPZ8+9j65sg0By6+gj2dZLcEBMfOw5JiHYypmjOpDHgyEWk
         B2f1Ls1zwtI69+f6rliXzj08yxGy5roXzMtAyLf/MnZvuxDD36qaEPuXjT765mlmp7yD
         6vHQ4if/Nghzbekv7SL97FNBkCuLQ3npt6ulPCDEUAomf9cCMnhOkUq6Yjch4KZko81b
         Lyim4MWLYgdNLLdPTTPs5BueK1znGXugO+G/yURezrA0b/HLZNMFw2PKnypPXoK/6DcY
         nFnM/1jM9a//8fRV/nfWDGOe9z7n5C4RD98H5OPkdRWWbpewUnp06u7Eu+zGIOXUg5IR
         oMcw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=KU3Bkt0E;
       spf=pass (google.com: domain of blitzrakete@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=blitzrakete@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id e84-v6sor5224111oig.241.2018.04.01.15.59.08
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Sun, 01 Apr 2018 15:59:08 -0700 (PDT)
Received-SPF: pass (google.com: domain of blitzrakete@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:aca:2804:: with SMTP id 4-v6mr4223260oix.74.1522623548420;
 Sun, 01 Apr 2018 15:59:08 -0700 (PDT)
In-Reply-To: <b8de3daf-019d-40e2-a039-082ca9c61c96@isocpp.org>
X-Original-Sender: blitzrakete@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=KU3Bkt0E;       spf=pass
 (google.com: domain of blitzrakete@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=blitzrakete@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE 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-Spam-Checked-In-Group: 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:37586
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37586>

--000000000000baf6ff0568d16b13
Content-Type: text/plain; charset="UTF-8"

I'm not an experienced compiler writer but wouldn't that actually be a
performance pessimization? Because now the compiler has to delete objects
instead of just keeping them around, or is the cost of finding
instantiations more expensive?

Do you have an implementation? I really think that you'll need actual
measurements to make this work, as it's not trivial: Keeping instantiations
around is a completely implementation defined thing not even mentioned by
the standard at any point AFAIK.

On Fri, Mar 30, 2018, 4:55 PM <liweifriends@gmail.com> wrote:

> Testing...
>
> --
> 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/b8de3daf-019d-40e2-a039-082ca9c61c96%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/b8de3daf-019d-40e2-a039-082ca9c61c96%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/CALmDwq1zuF95AfUZ9Mx23af%2BEFk-XaR7TwR01pc0tS_akgfeew%40mail.gmail.com.

--000000000000baf6ff0568d16b13
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">I&#39;m not an experienced compiler writer but wouldn&#39=
;t that actually be a performance pessimization? Because now the compiler h=
as to delete objects instead of just keeping them around, or is the cost of=
 finding instantiations more expensive?<div dir=3D"auto"><br></div><div dir=
=3D"auto">Do you have an implementation? I really think that you&#39;ll nee=
d actual measurements to make this work, as it&#39;s not trivial: Keeping i=
nstantiations around is a completely implementation defined thing not even =
mentioned by the standard at any point AFAIK.</div></div><br><div class=3D"=
gmail_quote"><div dir=3D"ltr">On Fri, Mar 30, 2018, 4:55 PM  &lt;<a href=3D=
"mailto:liweifriends@gmail.com" target=3D"_blank" rel=3D"noreferrer">liweif=
riends@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tes=
ting...<br>

<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" rel=3D"nore=
ferrer noreferrer" target=3D"_blank">std-proposals+unsubscribe@isocpp.org</=
a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" rel=3D"noreferrer noreferrer" target=3D"_blank">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/b8de3daf-019d-40e2-a039-082ca9c61c96%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" rel=3D"noreferrer =
noreferrer" target=3D"_blank">https://groups.google.com/a/isocpp.org/d/msgi=
d/std-proposals/b8de3daf-019d-40e2-a039-082ca9c61c96%40isocpp.org</a>.<br>
</blockquote></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/CALmDwq1zuF95AfUZ9Mx23af%2BEFk-XaR7Tw=
R01pc0tS_akgfeew%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CALmDwq1zuF95Af=
UZ9Mx23af%2BEFk-XaR7TwR01pc0tS_akgfeew%40mail.gmail.com</a>.<br />

--000000000000baf6ff0568d16b13--

.
