220 15290 <47ded514-49c4-4302-97f0-fbdb254c1ee7@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: masse.nicolas@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Add a [[removed]] attribute..
Date: Thu, 25 Dec 2014 04:02:32 -0800 (PST)
Lines: 142
Approved: news@gmane.org
Message-ID: <47ded514-49c4-4302-97f0-fbdb254c1ee7@isocpp.org>
References: <6baa05af-d74d-43a1-a07e-cfd55bcae0ea@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_5681_369766474.1419508952349"
X-Trace: ger.gmane.org 1419508961 4405 80.91.229.3 (25 Dec 2014 12:02:41 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 25 Dec 2014 12:02:41 +0000 (UTC)
Cc: 3dw4rd@verizon.net
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCCJBHV4UALBBWHZ56SAKGQEWEXTAIQ@isocpp.org Thu Dec 25 13:02:34 2014
Return-path: <std-proposals+bncBCCJBHV4UALBBWHZ56SAKGQEWEXTAIQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f197.google.com ([209.85.214.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCCJBHV4UALBBWHZ56SAKGQEWEXTAIQ@isocpp.org>)
	id 1Y477i-0006rJ-Gx
	for gclcip-std-proposals@m.gmane.org; Thu, 25 Dec 2014 13:02:34 +0100
Original-Received: by mail-ob0-f197.google.com with SMTP id va2sf232713210obc.0
        for <gclcip-std-proposals@m.gmane.org>; Thu, 25 Dec 2014 04:02:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:content-type:x-original-sender:reply-to:precedence
         :mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=kDwK3nYi+h2MoKDLdOJeTs1eb/WSFbFRHLvhDDLxWoc=;
        b=ZVK0Ch0Cm/WkBxQmjS11MaqMkZMNPMT68v2E9Y5UTdxZ7YlUWPOV2duyA4wkCEavkZ
         pAUx41awWnSZVJRfl8uoNuCf3BOdZ6v1Y/6f8M935wSohNrTYcLbvZQFsaFfHC6f9Oyb
         PqSgAyLXFRvaJBCa/Sk/Ff4pYZKH4Pb1wwSISARdq5SmVJQSJh4fwFM/ZP3PrxGYyH5J
         RWiFMBTIcL8SvynnOHdXkaQtqqlzmLqQ71cc4iiSbo5AlYQWqsx5kMlPl/b8S4F99XSN
         3PrZzKhtisZ8j563vfmIraT49BU9yzLJL3SiIOa5TV7IfKD+hJHdXIvhkeaI0blSHmlZ
         QFAQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to
         :references:subject:mime-version:content-type:x-original-sender
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=kDwK3nYi+h2MoKDLdOJeTs1eb/WSFbFRHLvhDDLxWoc=;
        b=TcAmpNJQ9uhrPLdkEz3/4OTPFtBQ6KkW2eWdruM22REQZ+9PvlrJoZzPxG0gJf73ak
         UTHFEShgkhC8t5p5C6LWUuAxdLIflGDasLPPUnJUtN0kyCUzCE0XosT++V7i0quhgZD9
         CYN0tgEVC46U+MkFOKZ6Bdc5bU75gDq6EiFL+9vnDgDbOKnhtvcDhf9A3L5zuN/1ETvI
         bz6oLtT8C0byrorFdujCnkg5GEc8aLlgYl0xWjoNzjPFdYiN29P6tJVN2HpRyp64j3Nw
         SRmqE0QnXMFQ4WgNCp++yoNeM5RmCZWrvNJ1cdVnFx4W4Kf+p50h1q/z31wXOndq62Si
         cqLg==
X-Gm-Message-State: ALoCoQlvFTHzfED5kEsMW3PQw24jdZhk9cH7yp5vW0G/JTJHMIVNOerVLQ0JMxRc4ZAAe1MzK6VC
X-Received: by 10.182.120.99 with SMTP id lb3mr29332919obb.10.1419508953517;
        Thu, 25 Dec 2014 04:02:33 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.92.22 with SMTP id a22ls6539664qge.43.gmail; Thu, 25 Dec
 2014 04:02:32 -0800 (PST)
X-Received: by 10.140.93.17 with SMTP id c17mr28qge.26.1419508952784;
        Thu, 25 Dec 2014 04:02:32 -0800 (PST)
In-Reply-To: <6baa05af-d74d-43a1-a07e-cfd55bcae0ea@isocpp.org>
X-Original-Sender: Masse.Nicolas@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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:15290
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/15290>

------=_Part_5681_369766474.1419508952349
Content-Type: multipart/alternative; 
	boundary="----=_Part_5682_1994937747.1419508952349"

------=_Part_5682_1994937747.1419508952349
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable


#if __cplusplus =3D=3D 201402
  [[deprecated("This function is deprecated and will be removed in a later"
)]]
  int foo();
#elif __cplusplus > 201402
  [[deprecated("Please use bar() instead")]]
  int foo() =3D delete;
#endif



Le jeudi 25 d=C3=A9cembre 2014 02:52:03 UTC+1, 3dw...@verizon.net a =C3=A9c=
rit :
>
> Now that C++14 is out with attribute [[deprecated]] and now that C++17 is=
=20
> moving forward with some removals of library features it seems lie a good=
=20
> idea to at least consider a [[removed]] attribute that could take a=20
> message.  This would allow an implementation to provide stronger dissuasi=
on=20
> including compilation fail than [[deprecated]].  This allows finer grain=
=20
> control over the status of features.
>
> As for implementation experience IIRC Clang has something like this.
>
> #if __cplusplus =3D=3D 201402
>   int foo() [[deprecated("This function is deprecated and will be removed=
=20
> in a later")]];
> #elif __cplusplus > 201402
>   int foo() [[removed("This function is removed.  Use bar() instead")]];
> #endif
>
> What do you all think?
>
> Ed
>
>
>

--=20

---=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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

------=_Part_5682_1994937747.1419508952349
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"prettyprint" style=3D"background-color: =
rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-style: solid; =
border-width: 1px; word-wrap: break-word;"><code class=3D"prettyprint"><div=
 class=3D"subprettyprint"><span style=3D"color: #800;" class=3D"styled-by-p=
rettify">#if __cplusplus =3D=3D 201402</span><span style=3D"color: #000;" c=
lass=3D"styled-by-prettify"><br></span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"><code class=3D"prettyprint"><span style=3D"color: #=
000;" class=3D"styled-by-prettify"></span><span style=3D"color: #660;" clas=
s=3D"styled-by-prettify">&nbsp; [[</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify">deprecated</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">(</span><span style=3D"color: #080;" class=3D"style=
d-by-prettify">"This function is deprecated and will be removed in a later"=
</span><span style=3D"color: #660;" class=3D"styled-by-prettify">)]]<br></s=
pan></code>&nbsp; </span><span style=3D"color: #008;" class=3D"styled-by-pr=
ettify">int</span><span style=3D"color: #000;" class=3D"styled-by-prettify"=
> foo</span><span style=3D"color: #660;" class=3D"styled-by-prettify">()</s=
pan><span style=3D"color: #660;" class=3D"styled-by-prettify">;</span><span=
 style=3D"color: #000;" class=3D"styled-by-prettify"><br></span><span style=
=3D"color: #800;" class=3D"styled-by-prettify">#elif</span><span style=3D"c=
olor: #000;" class=3D"styled-by-prettify"> __cplusplus </span><span style=
=3D"color: #660;" class=3D"styled-by-prettify">&gt;</span><span style=3D"co=
lor: #000;" class=3D"styled-by-prettify"> </span><span style=3D"color: #066=
;" class=3D"styled-by-prettify">201402</span><span style=3D"color: #000;" c=
lass=3D"styled-by-prettify"><br></span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"><code class=3D"prettyprint"><span style=3D"color: #=
660;" class=3D"styled-by-prettify">&nbsp; [[</span><span style=3D"color: #0=
00;" class=3D"styled-by-prettify">deprecated</span><span style=3D"color: #6=
60;" class=3D"styled-by-prettify">(</span><span style=3D"color: #080;" clas=
s=3D"styled-by-prettify">"Please use bar() instead"</span><span style=3D"co=
lor: #660;" class=3D"styled-by-prettify">)]]</span><span style=3D"color: #0=
00;" class=3D"styled-by-prettify"><br></span></code>&nbsp; </span><span sty=
le=3D"color: #008;" class=3D"styled-by-prettify">int</span><span style=3D"c=
olor: #000;" class=3D"styled-by-prettify"> foo</span><span style=3D"color: =
#660;" class=3D"styled-by-prettify">()</span><span style=3D"color: #000;" c=
lass=3D"styled-by-prettify"> </span><span style=3D"color: #660;" class=3D"s=
tyled-by-prettify">=3D</span><span style=3D"color: #000;" class=3D"styled-b=
y-prettify"> </span><span style=3D"color: #008;" class=3D"styled-by-prettif=
y">delete</span><span style=3D"color: #660;" class=3D"styled-by-prettify">;=
</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br></span=
><span style=3D"color: #800;" class=3D"styled-by-prettify">#endif</span><sp=
an style=3D"color: #000;" class=3D"styled-by-prettify"><br></span></div></c=
ode></div><br><br><br>Le jeudi 25 d=C3=A9cembre 2014 02:52:03 UTC+1, 3dw...=
@verizon.net a =C3=A9crit&nbsp;:<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">Now that C++14 is out with attribute [[deprecated]] and =
now that C++17 is moving forward with some removals of library features it =
seems lie a good idea to at least consider a [[removed]] attribute that cou=
ld take a message.&nbsp; This would allow an implementation to provide stro=
nger dissuasion including compilation fail than [[deprecated]].&nbsp; This =
allows finer grain control over the status of features.<br><br>As for imple=
mentation experience IIRC Clang has something like this.<br><br>#if __cplus=
plus =3D=3D 201402<br>&nbsp; int foo() [[deprecated("This function is depre=
cated and will be removed in a later")]];<br>#elif __cplusplus &gt; 201402<=
br>&nbsp; int foo() [[removed("This function is removed.&nbsp; Use bar() in=
stead")]];<br>#endif<br><br>What do you all think?<br><br>Ed<br><br><br></d=
iv></blockquote></div>

<p></p>

-- <br />
<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 <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 />
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 />

------=_Part_5682_1994937747.1419508952349--
------=_Part_5681_369766474.1419508952349--

.
