220 37129 <CALvx3hbSTNk-Tq3EH5KAOWS9NT-zee8n1urjgKj-V_tidz+KLw@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Richard Hodges <hodges.r@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Use of "implement" when overriding a virtual
 method that does not have an implementation, yet.
Date: Wed, 28 Feb 2018 22:33:05 +0000
Lines: 303
Approved: news@gmane.org
Message-ID: <CALvx3hbSTNk-Tq3EH5KAOWS9NT-zee8n1urjgKj-V_tidz+KLw@mail.gmail.com>
References: <8462ee66-9e9a-4579-8246-64861bf4a349@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="001a1147b726af6e7205664d53a2"
X-Trace: blaine.gmane.org 1519857066 19088 195.159.176.226 (28 Feb 2018 22:31:06 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 28 Feb 2018 22:31:06 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBD4PBM7UWAHRBIW43TKAKGQEIEEF6HQ@isocpp.org Wed Feb 28 23:31:02 2018
Return-path: <std-proposals+bncBD4PBM7UWAHRBIW43TKAKGQEIEEF6HQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-io0-f199.google.com ([209.85.223.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBD4PBM7UWAHRBIW43TKAKGQEIEEF6HQ@isocpp.org>)
	id 1erAFa-0004ZX-64
	for gclcip-std-proposals@m.gmane.org; Wed, 28 Feb 2018 23:31:02 +0100
Original-Received: by mail-io0-f199.google.com with SMTP id v8sf3993898iob.0
        for <gclcip-std-proposals@m.gmane.org>; Wed, 28 Feb 2018 14:33:09 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1519857188; cv=pass;
        d=google.com; s=arc-20160816;
        b=tdHB7HAGkli0/+6JpqT9fI1PldHf2gdKNyeqQsOt075ndhMLKfWgoyb8IBDuFttBqL
         i/FjTy+NzGXhTXcTaiPpmjyQ5LHQSQmu1mhNlBUGvny1aWSAZvS+DaraoR3OQ6R7aWZm
         oVoPrYBS5sAEJOA2Oo5tQNmze7OW4q2cRDx6F/D8/GhIXfXHZaaMOUU0E50FzO8hjL0p
         3+gqNTXS0bxWz1PKx8YwKeT1mLGdcAziJqbtv94iF6EhuXJbr6svBtnoltbvF0fXxz3P
         7Xb8jy0OEKRaW4PWBKyObhhVqNavoixMbLeY+cO3DYvUn3RRA+Y1u0PKeoisPSuSpUEE
         IPSQ==
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:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=lcn++2+ZVvTepPW2FKkPr+dI2BQNP6cyGW67wnXdDJA=;
        b=x+YPTBiFK4b/eqFChpKqmdJGnPAxQESTHj+rXuzdiQUEaHARdmidEiZmQ77LYN/15N
         GfIipMihxaxcIMlkf/TlmaC2Hyl/3EMikFm5HO+Vxi3ag+WcsBvFJgoTG3q/5ZlDp9BH
         DkqXl4Al1RweE/650e89/b7cRAwwilKbxX2gFIhq7JjzGUbrOuAlPfkIbEmArRLCzo1r
         5XyLXwXP5o0yrIwwdJuftH5HqAviuEQ6IgB/QK3AW21FlTjNbzjO17WbjA6LxS2xnfIR
         Pi6Eu+Vdnn1hjN/0DSsLv0KZvHYz0DVkVjMeCoNYRjB352fNE7UzNxKFPb/QzZXPGeM6
         RgBA==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=YovX/4MZ;
       spf=pass (google.com: domain of hodges.r@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hodges.r@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:in-reply-to:references: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=lcn++2+ZVvTepPW2FKkPr+dI2BQNP6cyGW67wnXdDJA=;
        b=jIYrU/c8FfDx59f5CbKUFhiwar/s+RsQwXQKyz4LSso9BeHrR4TQwcPlnJ+SkKPHem
         biYa/orgSK3629ltwyOCMjGXd7jdDPP2cBsROCf7Lx7LSFy+z044txlN3IU0AeycVetU
         nNPy8yRkjgY3w6de7YnjD3+O+Y1BQ67b4njtqZnIMUJulQXsPSa9LmCTO3eim59u/8Qx
         CddUY1hgAXjpQlrJIxwxOrj/qDS+FVwfO5+7sFGrXB30aYzAnc5oJs6iobN191ONHuhI
         07W7smfCOAEQvZX/gLJaeGvw0Ft0AiC+plyYE3LkpV1B3iWva5k7oEm63WT9TvdQTZm6
         Eaqg==
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=lcn++2+ZVvTepPW2FKkPr+dI2BQNP6cyGW67wnXdDJA=;
        b=S1ppJN3kgh0pharGBt0OiBambEZDyGuQtXl06H//LNenL5r4eOSjGct4bG0DCH/X+B
         5nrVYbWeIPnWZfkju4G5UhkCXwYCwIqs84Q3jiFwaJRkE9iNTx+D+eHmmzJl9/4fnVAH
         qMDcndMZb3McjMwK3mPk0suJUmqYAcyqBwWP8V7xkz5S+XkA/qsIpjOY+5opQAUKYQTt
         ZKAVPwWeEdiNkmVtPqbE0/0a7M1GqT9Ci5GMa5zcQ3d8uCYnk0pKFgf/imHbd08JQdke
         9ln0PvgblCRCSOVaw+8fqJN6QskSJlUW1t3T3YvX/slC2g4xQ4FfYYSrxu178PtNiZiR
         mCgg==
X-Gm-Message-State: APf1xPCPCC9SRnpKnOqLkn49FQ8NijBteOzyyWb76HE98PEkag+44Ekl
	L3zPnzBiKYLOd/d4i4RwtuskGQ==
X-Google-Smtp-Source: AG47ELtY5pAmsF9Nh6T4jyDjlhKBFo7R2PAlsxfEOVQUFRmjwULSJFibnikM99sawNuUkXdvMOX41Q==
X-Received: by 10.36.10.82 with SMTP id 79mr23812itw.51.1519857188337;
        Wed, 28 Feb 2018 14:33:08 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.85.195 with SMTP id e186ls1187887itb.3.canary-gmail; Wed,
 28 Feb 2018 14:33:06 -0800 (PST)
X-Received: by 10.36.238.76 with SMTP id b73mr151932iti.62.1519857186561;
        Wed, 28 Feb 2018 14:33:06 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1519857186; cv=none;
        d=google.com; s=arc-20160816;
        b=m9NiAa+SsHsM2qRIUMr58qPcAx3BDsoIW6nx2kUww0DwJ4FReadAFuzlbS9N2yey1z
         lh7AxdSQmwavwq6ln3VtDFiT1qK5puXi8jsaS3iNETV/aRcmi0Lb6ElbGQGsc5HFB2Uu
         zN67ld4U42r4ern2FygfEmLWyrgSuv1ICTyW5EjpNeiS3ujUhI0OkYEh68rW0BR1tBL9
         K8+/MBfp5aujmDK0JVowb6sJr5EEWtgZ5eT4EUBAs8m1MGKHMVViD79VuLucc4pqE6RR
         WBqaABcNkIl+gyaTXgJH0uUZ/jq/zHhKOX+4lCjXft3WcxfUZcwl6pEhP8xw3P8Ruw+r
         ut+w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=CxrN2HglNQP6bLUgUQcZKCuCZa8EeMGHL3xliME2520=;
        b=EkBK7D8xxLnRzGEJicVVUFWx7uqR7EpRtWvboOkTj7cKvcWNuJrfnpf24/j/UO2cYj
         sBqHKmhIyL5T9lEferr+aamR57bHHkTEWDekaDkNQhGs+JEhUL0keDF0SoD2Y1KPWrn7
         xiSwoGa+U/LdU8ILINvdos4w3glyQJBYTZYqu5MrYONm0H+UcMOUw1UBaH3SyWBKPzJM
         prUcQpQIXR5D5gvBi4GjLDB0HebpVOqYZ9L4tzAc4XZYom0uOXdCS0/fTs9TV44ikHo1
         kS2+5G/Vm+EEx4PtiFhh7ustlpGDFXwA58gQVt/KXvKswCk+Vdqmk1sqhCpfM6lDDf60
         6Zkg==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=YovX/4MZ;
       spf=pass (google.com: domain of hodges.r@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hodges.r@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 r84sor1915044itr.56.2018.02.28.14.33.06
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Wed, 28 Feb 2018 14:33:06 -0800 (PST)
Received-SPF: pass (google.com: domain of hodges.r@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.36.127.10 with SMTP id r10mr122132itc.101.1519857186072;
 Wed, 28 Feb 2018 14:33:06 -0800 (PST)
Original-Received: by 10.2.102.105 with HTTP; Wed, 28 Feb 2018 14:33:05 -0800 (PST)
In-Reply-To: <8462ee66-9e9a-4579-8246-64861bf4a349@isocpp.org>
X-Original-Sender: hodges.r@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=YovX/4MZ;       spf=pass
 (google.com: domain of hodges.r@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=hodges.r@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:37129
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37129>

--001a1147b726af6e7205664d53a2
Content-Type: text/plain; charset="UTF-8"

On 28 February 2018 at 22:04, <cristian64@gmail.com> wrote:

> Pretty often I find myself wanting to declare a method as *implement*, as
> opposed to using *override*.
>
> Here an example:
>
> #include <iostream>
>
> class A
> {
> public:
>     virtual ~A() {}
>     virtual void foo() { std::cout << "A::foo" << std::endl; }
>     virtual void bar() = 0;
> };
>
> class B : public A
> {
> public:
>     void foo() override { std::cout << "B::foo" << std::endl; }
>     void bar() implement { std::cout << "B::bar" << std::endl; }
> };
>
> It helps readability. The use of *override* implies that an implementation
> already exists and is going to be overridden, which is not the case for
> *A::bar*.
> *implement* would just fit in this case.
>
> If in the future an implementation for *A::bar* is provided, the compiler
> will let
> the developer know that an implementation is now being overridden, that is
> no
> longer "implementing it", but "overriding it", which may be bad. I, as a
> developer,
> want to be aware of that scenario. I would be able to decide whether the
> base
> implementation needs to be executed inside the derived class'
> implementation,
> and *when* it must be executed.
>
> For retro-compatibility, *override* could always be used where the use of
> *implement* is allowed.
>
> On the other hand, *implement* would become a reserved keyword of the C++
> programing language.
>
>
>


> Thoughts?
>

These are my thoughts:

#define implement override

But not in any code I'll end up maintaining, or any public header files
please.



>
> --
> 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/8462ee66-9e9a-4579-
> 8246-64861bf4a349%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/8462ee66-9e9a-4579-8246-64861bf4a349%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/CALvx3hbSTNk-Tq3EH5KAOWS9NT-zee8n1urjgKj-V_tidz%2BKLw%40mail.gmail.com.

--001a1147b726af6e7205664d53a2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On 28 February 2018 at 22:04,  <span dir=3D"ltr">&lt;<a href=3D"mailto:=
cristian64@gmail.com" target=3D"_blank">cristian64@gmail.com</a>&gt;</span>=
 wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bor=
der-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Pretty often I f=
ind myself wanting to declare a method as <b>implement</b>, as<br>opposed t=
o using <b>override</b>.<br><br>Here an example:<br><br><div style=3D"backg=
round-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:sol=
id;border-width:1px" class=3D"m_-1400620095787787110prettyprint"><font size=
=3D"2"><code class=3D"m_-1400620095787787110prettyprint"><div class=3D"m_-1=
400620095787787110subprettyprint"><span style=3D"color:rgb(136,0,0)" class=
=3D"m_-1400620095787787110styled-by-prettify">#include</span><span style=3D=
"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify"> </sp=
an><span style=3D"color:rgb(0,136,0)" class=3D"m_-1400620095787787110styled=
-by-prettify">&lt;iostream&gt;</span><span style=3D"color:rgb(0,0,0)" class=
=3D"m_-1400620095787787110styled-by-prettify"><br><br></span><span style=3D=
"color:rgb(0,0,136)" class=3D"m_-1400620095787787110styled-by-prettify">cla=
ss</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110st=
yled-by-prettify"> A<br></span><span style=3D"color:rgb(102,102,0)" class=
=3D"m_-1400620095787787110styled-by-prettify">{</span><span style=3D"color:=
rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify"><br></span><=
span style=3D"color:rgb(0,0,136)" class=3D"m_-1400620095787787110styled-by-=
prettify">public</span><span style=3D"color:rgb(102,102,0)" class=3D"m_-140=
0620095787787110styled-by-prettify">:</span><span style=3D"color:rgb(0,0,0)=
" class=3D"m_-1400620095787787110styled-by-prettify"><br>=C2=A0 =C2=A0 </sp=
an><span style=3D"color:rgb(0,0,136)" class=3D"m_-1400620095787787110styled=
-by-prettify">virtual</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-14=
00620095787787110styled-by-prettify"> </span><span style=3D"color:rgb(102,1=
02,0)" class=3D"m_-1400620095787787110styled-by-prettify">~</span><span sty=
le=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify">=
A</span><span style=3D"color:rgb(102,102,0)" class=3D"m_-140062009578778711=
0styled-by-prettify">()</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-=
1400620095787787110styled-by-prettify"> </span><span style=3D"color:rgb(102=
,102,0)" class=3D"m_-1400620095787787110styled-by-prettify">{}</span><span =
style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettif=
y"><br>=C2=A0 =C2=A0 </span><span style=3D"color:rgb(0,0,136)" class=3D"m_-=
1400620095787787110styled-by-prettify">virtual</span><span style=3D"color:r=
gb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify"> </span><span=
 style=3D"color:rgb(0,0,136)" class=3D"m_-1400620095787787110styled-by-pret=
tify">void</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787=
787110styled-by-prettify"> foo</span><span style=3D"color:rgb(102,102,0)" c=
lass=3D"m_-1400620095787787110styled-by-prettify">()</span><code class=3D"m=
_-1400620095787787110prettyprint"><span style=3D"color:rgb(0,0,0)" class=3D=
"m_-1400620095787787110styled-by-prettify"> </span><span style=3D"color:rgb=
(102,102,0)" class=3D"m_-1400620095787787110styled-by-prettify">{</span><sp=
an style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-pret=
tify"> std</span><span style=3D"color:rgb(102,102,0)" class=3D"m_-140062009=
5787787110styled-by-prettify">::</span><span style=3D"color:rgb(0,0,0)" cla=
ss=3D"m_-1400620095787787110styled-by-prettify">cout </span><span style=3D"=
color:rgb(102,102,0)" class=3D"m_-1400620095787787110styled-by-prettify">&l=
t;&lt;</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-14006200957877871=
10styled-by-prettify"> </span><span style=3D"color:rgb(0,136,0)" class=3D"m=
_-1400620095787787110styled-by-prettify">&quot;A::foo&quot;</span><span sty=
le=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify">=
 </span><span style=3D"color:rgb(102,102,0)" class=3D"m_-140062009578778711=
0styled-by-prettify">&lt;&lt;</span><span style=3D"color:rgb(0,0,0)" class=
=3D"m_-1400620095787787110styled-by-prettify"> std</span><span style=3D"col=
or:rgb(102,102,0)" class=3D"m_-1400620095787787110styled-by-prettify">::</s=
pan><span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-=
by-prettify">endl</span><span style=3D"color:rgb(102,102,0)" class=3D"m_-14=
00620095787787110styled-by-prettify">;</span><span style=3D"color:rgb(0,0,0=
)" class=3D"m_-1400620095787787110styled-by-prettify"> </span><span style=
=3D"color:rgb(102,102,0)" class=3D"m_-1400620095787787110styled-by-prettify=
">}</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110s=
tyled-by-prettify"></span></code><span style=3D"color:rgb(0,0,0)" class=3D"=
m_-1400620095787787110styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span st=
yle=3D"color:rgb(0,0,136)" class=3D"m_-1400620095787787110styled-by-prettif=
y">virtual</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787=
787110styled-by-prettify"> </span><span style=3D"color:rgb(0,0,136)" class=
=3D"m_-1400620095787787110styled-by-prettify">void</span><span style=3D"col=
or:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify"> bar</spa=
n><span style=3D"color:rgb(102,102,0)" class=3D"m_-1400620095787787110style=
d-by-prettify">()</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-140062=
0095787787110styled-by-prettify"> =3D 0;</span><span style=3D"color:rgb(0,0=
,0)" class=3D"m_-1400620095787787110styled-by-prettify"><br></span><span st=
yle=3D"color:rgb(102,102,0)" class=3D"m_-1400620095787787110styled-by-prett=
ify">};</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787=
110styled-by-prettify"><br>=C2=A0<br></span><span style=3D"color:rgb(0,0,13=
6)" class=3D"m_-1400620095787787110styled-by-prettify">class</span><span st=
yle=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify"=
> B </span><span style=3D"color:rgb(102,102,0)" class=3D"m_-140062009578778=
7110styled-by-prettify">:</span><span style=3D"color:rgb(0,0,0)" class=3D"m=
_-1400620095787787110styled-by-prettify"> </span><span style=3D"color:rgb(0=
,0,136)" class=3D"m_-1400620095787787110styled-by-prettify">public</span><s=
pan style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-pre=
ttify"> A<br></span><span style=3D"color:rgb(102,102,0)" class=3D"m_-140062=
0095787787110styled-by-prettify">{</span><span style=3D"color:rgb(0,0,0)" c=
lass=3D"m_-1400620095787787110styled-by-prettify"><br></span><span style=3D=
"color:rgb(0,0,136)" class=3D"m_-1400620095787787110styled-by-prettify">pub=
lic</span><span style=3D"color:rgb(102,102,0)" class=3D"m_-1400620095787787=
110styled-by-prettify">:</span><span style=3D"color:rgb(0,0,0)" class=3D"m_=
-1400620095787787110styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span styl=
e=3D"color:rgb(0,0,136)" class=3D"m_-1400620095787787110styled-by-prettify"=
>void</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-140062009578778711=
0styled-by-prettify"> foo</span><span style=3D"color:rgb(102,102,0)" class=
=3D"m_-1400620095787787110styled-by-prettify">()</span><span style=3D"color=
:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify"> </span><sp=
an style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-pret=
tify"><code class=3D"m_-1400620095787787110prettyprint"><span style=3D"colo=
r:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify"></span><sp=
an style=3D"color:rgb(0,0,136)" class=3D"m_-1400620095787787110styled-by-pr=
ettify">override</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620=
095787787110styled-by-prettify"></span></code> </span><span style=3D"color:=
rgb(102,102,0)" class=3D"m_-1400620095787787110styled-by-prettify">{</span>=
<span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-p=
rettify"> std</span><span style=3D"color:rgb(102,102,0)" class=3D"m_-140062=
0095787787110styled-by-prettify">::</span><span style=3D"color:rgb(0,0,0)" =
class=3D"m_-1400620095787787110styled-by-prettify">cout </span><span style=
=3D"color:rgb(102,102,0)" class=3D"m_-1400620095787787110styled-by-prettify=
">&lt;&lt;</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787=
787110styled-by-prettify"> </span><span style=3D"color:rgb(0,136,0)" class=
=3D"m_-1400620095787787110styled-by-prettify">&quot;B::foo&quot;</span><spa=
n style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prett=
ify"> </span><span style=3D"color:rgb(102,102,0)" class=3D"m_-1400620095787=
787110styled-by-prettify">&lt;&lt;</span><span style=3D"color:rgb(0,0,0)" c=
lass=3D"m_-1400620095787787110styled-by-prettify"> std</span><span style=3D=
"color:rgb(102,102,0)" class=3D"m_-1400620095787787110styled-by-prettify">:=
:</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110sty=
led-by-prettify">endl</span><span style=3D"color:rgb(102,102,0)" class=3D"m=
_-1400620095787787110styled-by-prettify">;</span><span style=3D"color:rgb(0=
,0,0)" class=3D"m_-1400620095787787110styled-by-prettify"> </span><span sty=
le=3D"color:rgb(102,102,0)" class=3D"m_-1400620095787787110styled-by-pretti=
fy">}</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-140062009578778711=
0styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=3D"color:rgb(0,0,=
136)" class=3D"m_-1400620095787787110styled-by-prettify">void</span><span s=
tyle=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify=
"> bar</span><span style=3D"color:rgb(102,102,0)" class=3D"m_-1400620095787=
787110styled-by-prettify">()</span><span style=3D"color:rgb(0,0,0)" class=
=3D"m_-1400620095787787110styled-by-prettify"> implement</span><span style=
=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify"> <=
/span><span style=3D"color:rgb(102,102,0)" class=3D"m_-1400620095787787110s=
tyled-by-prettify">{</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-140=
0620095787787110styled-by-prettify"> std</span><span style=3D"color:rgb(102=
,102,0)" class=3D"m_-1400620095787787110styled-by-prettify">::</span><span =
style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettif=
y">cout </span><span style=3D"color:rgb(102,102,0)" class=3D"m_-14006200957=
87787110styled-by-prettify">&lt;&lt;</span><span style=3D"color:rgb(0,0,0)"=
 class=3D"m_-1400620095787787110styled-by-prettify"> </span><span style=3D"=
color:rgb(0,136,0)" class=3D"m_-1400620095787787110styled-by-prettify">&quo=
t;B::bar&quot;</span><span style=3D"color:rgb(0,0,0)" class=3D"m_-140062009=
5787787110styled-by-prettify"> </span><span style=3D"color:rgb(102,102,0)" =
class=3D"m_-1400620095787787110styled-by-prettify">&lt;&lt;</span><span sty=
le=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-prettify">=
 std</span><span style=3D"color:rgb(102,102,0)" class=3D"m_-140062009578778=
7110styled-by-prettify">::</span><span style=3D"color:rgb(0,0,0)" class=3D"=
m_-1400620095787787110styled-by-prettify">endl</span><span style=3D"color:r=
gb(102,102,0)" class=3D"m_-1400620095787787110styled-by-prettify">;</span><=
span style=3D"color:rgb(0,0,0)" class=3D"m_-1400620095787787110styled-by-pr=
ettify"> </span><span style=3D"color:rgb(102,102,0)" class=3D"m_-1400620095=
787787110styled-by-prettify">}</span><span style=3D"color:rgb(0,0,0)" class=
=3D"m_-1400620095787787110styled-by-prettify"><br></span><span style=3D"col=
or:rgb(102,102,0)" class=3D"m_-1400620095787787110styled-by-prettify">};</s=
pan></div></code></font></div><br>It helps readability. The use of <b>overr=
ide</b> implies that an implementation<br>already exists and is going to be=
 overridden, which is not the c<span style=3D"font-family:arial,sans-serif"=
>ase for <b>A::bar</b>.</span><br><b>implement</b> would just fit in this c=
ase.<br><br>If in the future an implementation<span style=3D"font-family:ar=
ial,sans-serif"> for <b>A::bar</b> is provide</span>d, the compiler will le=
t<br>the developer know that an implementation is now being overridden, tha=
t is no<br>longer &quot;implementing it&quot;, but &quot;overriding it&quot=
;, which may be bad. I, as a developer,<br>want to be aware of that scenari=
o. I would be able to decide whether the base<br>implementation needs to be=
 executed inside the derived class&#39; implementation,<br>and <i>when</i> =
it must be executed.<br><br>For retro-compatibility, <b>override</b> could =
always be used where the use of<br><b>implement</b> is allowed.<br><br>On t=
he other hand, <b>implement</b> would become a reserved keyword of the C++<=
br>programing language.<br><br><br></div></blockquote><div><br></div><div>=
=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Thoughts?</div>=
</blockquote><div><br></div><div>These are my thoughts:</div><div><br></div=
><div><span style=3D"font-family:monospace,monospace">#define implement ove=
rride</span><br></div><div><br></div><div>But not in any code I&#39;ll end =
up maintaining, or any public header files please.</div><div><br></div><div=
>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><span class=3D=
"HOEnZb"><font color=3D"#888888"><br></font></span></div><span class=3D"HOE=
nZb"><font color=3D"#888888">

<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" target=3D"_=
blank">std-proposals+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>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/8462ee66-9e9a-4579-8246-64861bf4a349%=
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/8462=
ee66-9e9a-4579-<wbr>8246-64861bf4a349%40isocpp.org</a><wbr>.<br>
</font></span></blockquote></div><br></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/CALvx3hbSTNk-Tq3EH5KAOWS9NT-zee8n1urj=
gKj-V_tidz%2BKLw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CALvx3hbSTNk-Tq=
3EH5KAOWS9NT-zee8n1urjgKj-V_tidz%2BKLw%40mail.gmail.com</a>.<br />

--001a1147b726af6e7205664d53a2--

.
