220 7878 <CA+JonM178Oi0roCZtuzKD0vsFgcVHWGSnLoFwHun4kzTXi7ceA@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JvQtdC+0L3RgtGM0LXQsg==?= <dm.leontiev7@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Limited inheritance for classes
Date: Wed, 20 Nov 2013 18:52:49 +0400
Lines: 128
Approved: news@gmane.org
Message-ID: <CA+JonM178Oi0roCZtuzKD0vsFgcVHWGSnLoFwHun4kzTXi7ceA@mail.gmail.com>
References: <f04aeac5-ab5a-4508-ae69-196f53e7a6f8@isocpp.org>
	<CAFk2RUapU4MNTVoVe3F0DP+5C7M_AHPT6MQdHxfVDTH+3tsQfQ@mail.gmail.com>
	<CA+JonM25VQutZms0zKYfbvP91b88Ou2gSnpXXi0ZAtnLO1htWQ@mail.gmail.com>
	<CAFk2RUYGPkEN+mdmi3KZ5M7FTP5=6=TrbTQzr3c1pCV3DnTwdg@mail.gmail.com>
	<CA+JonM0-YHEiEJywSjbLt+3=PuvyH7My=tTCnCDS44EO+Ac+kQ@mail.gmail.com>
	<CAFk2RUYQ9e_grbtE+XnmiQ=sa9XdRP__-b+qW65PkSCwWVA3ng@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e01634aa65a895904eb9cef41
X-Trace: ger.gmane.org 1384959169 7230 80.91.229.3 (20 Nov 2013 14:52:49 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 20 Nov 2013 14:52:49 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCVM3HN4RQMBBQUZWOKAKGQEELMMCYA@isocpp.org Wed Nov 20 15:52:55 2013
Return-path: <std-proposals+bncBCVM3HN4RQMBBQUZWOKAKGQEELMMCYA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pb0-f72.google.com ([209.85.160.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCVM3HN4RQMBBQUZWOKAKGQEELMMCYA@isocpp.org>)
	id 1Vj99A-0004o9-B5
	for gclcip-std-proposals@m.gmane.org; Wed, 20 Nov 2013 15:52:52 +0100
Original-Received: by mail-pb0-f72.google.com with SMTP id jt11sf16135155pbb.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 20 Nov 2013 06:52:51 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from: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:content-type;
        bh=MbHk74ckwUU7iSUM1jUU9a0VET3dBetjDG+xXTfmZ88=;
        b=SBL6tG1hezsNM8RSDcqB3B4fhTRojjgF2ohuh+SCbF4LMKYptju5dqUL65F90Bhlx+
         wOXCk7H7RK+7DaRFxaLT66z90OlfzCmKJYsLxX0b/h1Nv7dfI8B0rOW3H45AWz8HXK8+
         cW65cEohWrDfXTuQLV6upWlluJlmSx3y8ctPjAkEcFaVOgn1ucFRUFthbxTP29D8OPnX
         SHvACoi1VNYIcOh8WHPIASVt/HjqoiTXKLfuT3dBbGwvZphPvtmTrVSkdmWc8LKe/Z1k
         uohJ93313FLWo+UwiVlOxXkI3tnCk11IZw7zA1byJ9HeHkNpTJwCuIhn7HcBe2JSmnTI
         nFvw==
X-Gm-Message-State: ALoCoQnSfxxjYCPUPlr+/QQTMy2CtTAO16yTpEpUq77ZFdUhiJ56smxDa4ERfFN6LiFhbbb2R8n+
X-Received: by 10.66.141.46 with SMTP id rl14mr315273pab.44.1384959170819;
        Wed, 20 Nov 2013 06:52:50 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.131.7 with SMTP id oi7ls97092qeb.92.gmail; Wed, 20 Nov 2013
 06:52:50 -0800 (PST)
X-Received: by 10.58.46.77 with SMTP id t13mr180452vem.32.1384959170086;
        Wed, 20 Nov 2013 06:52:50 -0800 (PST)
Original-Received: from mail-ve0-x231.google.com (mail-ve0-x231.google.com [2607:f8b0:400c:c01::231])
        by mx.google.com with ESMTPS id gu4si9540612vdc.98.2013.11.20.06.52.50
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 20 Nov 2013 06:52:50 -0800 (PST)
Received-SPF: pass (google.com: domain of dm.leontiev7@gmail.com designates 2607:f8b0:400c:c01::231 as permitted sender) client-ip=2607:f8b0:400c:c01::231;
Original-Received: by mail-ve0-f177.google.com with SMTP id db12so3204423veb.8
        for <std-proposals@isocpp.org>; Wed, 20 Nov 2013 06:52:50 -0800 (PST)
X-Received: by 10.52.166.200 with SMTP id zi8mr611824vdb.38.1384959169953;
 Wed, 20 Nov 2013 06:52:49 -0800 (PST)
Original-Received: by 10.58.213.161 with HTTP; Wed, 20 Nov 2013 06:52:49 -0800 (PST)
In-Reply-To: <CAFk2RUYQ9e_grbtE+XnmiQ=sa9XdRP__-b+qW65PkSCwWVA3ng@mail.gmail.com>
X-Original-Sender: dm.leontiev7@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of dm.leontiev7@gmail.com designates 2607:f8b0:400c:c01::231 as
 permitted sender) smtp.mail=dm.leontiev7@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=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: <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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:7878
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7878>

--089e01634aa65a895904eb9cef41
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I want B to override function. And I want A to override function. I want B
to not no override function A already overrided.

The problem is B overrides function() in _both_ parent classes. I want it
to override only one function() in one parent.


2013/11/20 Ville Voutilainen <ville.voutilainen@gmail.com>

> On 20 November 2013 16:38, =D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9 =D0=
=9B=D0=B5=D0=BE=D0=BD=D1=82=D1=8C=D0=B5=D0=B2 <dm.leontiev7@gmail.com>
> wrote:
> > because I'll get an error on line:
> >
> > class B : public A, private Handler {
> >     void function();//ERROR: function is final
> > };
> >
> > final does not protect VTable
>
>
> You didn't want B to be able to override 'function', final gave you exact=
ly
> that, and now you don't want exactly that? If B is still able to
> override 'function',
> what is that supposed to mean, and how does that prevent the problem
> you described?
>
> --
>
> ---
> 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/XHPXdG01rBY/=
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.
> Visit this group at
> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>

--=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/.

--089e01634aa65a895904eb9cef41
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I want B to override function. And I want A to overri=
de function. I want B to not no override function A already overrided.</div=
><div>=C2=A0</div><div>The problem is B overrides function() in _both_ pare=
nt classes. I want it to override only one function() in one parent.</div>
</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">2013/11=
/20 Ville Voutilainen <span dir=3D"ltr">&lt;<a href=3D"mailto:ville.voutila=
inen@gmail.com" target=3D"_blank">ville.voutilainen@gmail.com</a>&gt;</span=
><br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex">
<div class=3D"im">On 20 November 2013 16:38, =D0=94=D0=BC=D0=B8=D1=82=D1=80=
=D0=B8=D0=B9 =D0=9B=D0=B5=D0=BE=D0=BD=D1=82=D1=8C=D0=B5=D0=B2 &lt;<a href=
=3D"mailto:dm.leontiev7@gmail.com">dm.leontiev7@gmail.com</a>&gt; wrote:<br=
>
&gt; because I&#39;ll get an error on line:<br>
&gt;<br>
&gt; class B : public A, private Handler {<br>
&gt; =C2=A0 =C2=A0 void function();//ERROR: function is final<br>
&gt; };<br>
&gt;<br>
&gt; final does not protect VTable<br>
<br>
<br>
</div>You didn&#39;t want B to be able to override &#39;function&#39;, fina=
l gave you exactly<br>
that, and now you don&#39;t want exactly that? If B is still able to<br>
override &#39;function&#39;,<br>
what is that supposed to mean, and how does that prevent the problem<br>
you described?<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
--<br>
<br>
---<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/XHPXdG01rBY/unsubscribe" target=3D"_blan=
k">https://groups.google.com/a/isocpp.org/d/topic/std-proposals/XHPXdG01rBY=
/unsubscribe</a>.<br>

To unsubscribe from this group and all its topics, send an email to <a href=
=3D"mailto:std-proposals%2Bunsubscribe@isocpp.org">std-proposals+unsubscrib=
e@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/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</div></div></blockquote></div><br></div>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<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 />

--089e01634aa65a895904eb9cef41--

.
