220 7569 <4608928.hBFqcpEg1D@tjmaciei-mobl2> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Fixing the private method issue
Date: Sun, 03 Nov 2013 20:15:38 -0800
Lines: 38
Approved: news@gmane.org
Message-ID: <4608928.hBFqcpEg1D@tjmaciei-mobl2>
References: <d5cd9fa5-ac2f-465b-b92d-cf2a35607245@isocpp.org> <2434394.qTJQO2yfY8@tjmaciei-mobl2> <CAFk2RUY1f65jz6xH8u6QbBkudp0vzqdnm4H0SfXjie+555DbMA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1383538537 8802 80.91.229.3 (4 Nov 2013 04:15:37 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 4 Nov 2013 04:15:37 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRB3N63SJQKGQEJBVHAVA@isocpp.org Mon Nov 04 05:15:43 2013
Return-path: <std-proposals+bncBCB4TK757YBRB3N63SJQKGQEJBVHAVA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f71.google.com ([74.125.83.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRB3N63SJQKGQEJBVHAVA@isocpp.org>)
	id 1VdBZn-0003OG-DN
	for gclcip-std-proposals@m.gmane.org; Mon, 04 Nov 2013 05:15:43 +0100
Original-Received: by mail-ee0-f71.google.com with SMTP id c50sf1427963eek.10
        for <gclcip-std-proposals@m.gmane.org>; Sun, 03 Nov 2013 20:15:43 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version: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=vfbOy0DJj84Gy1r2jG0kKmNW6+mDH1SExtR0+WXHcFE=;
        b=BHt5jf7Ljw/49QFMdnUeFEs00xQQLtgSNyDOSj4KPsFcI5lTzYn4VEvZLg2PZ2ls4y
         IYx/K3BOM9bNxCooS6tjSPwCctJUBlWqD1JBW7Fq9FCFEIOwlu0+gZc0R3lhrXpvtAIo
         stIprn1vyqN+abAZF9Ym7Jgarjskto+Z/yiYIqSqhdL4/Rnu7CXQvRJyyElc/TuaxdvO
         +AmfxF2jvaHxyYZELtX8ln8TABOnZ8ybXz6zB/4Uz31R82fq1sNw+iXM9HQKmjRf1kNy
         TAGq+03bnm7RygyoiWpjN251ZPGQot4dHxPoeJDFp8YuC0NKIbxSRFE3c3HOLaCCt9v9
         UJEw==
X-Gm-Message-State: ALoCoQkqOv5vmwkTIdKNEHq8OsymcJ0VdWOS7w3puKoecXR1GHF8YBKXhQgCK1on3LFLTvghDajQ
X-Received: by 10.180.210.242 with SMTP id mx18mr5515143wic.6.1383538542809;
        Sun, 03 Nov 2013 20:15:42 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.181.11.230 with SMTP id el6ls381752wid.44.canary; Sun, 03 Nov
 2013 20:15:41 -0800 (PST)
X-Received: by 10.15.24.68 with SMTP id i44mr361651eeu.87.1383538541286;
        Sun, 03 Nov 2013 20:15:41 -0800 (PST)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id t9si8988766eeo.335.2013.11.03.20.15.41
        for <std-proposals@isocpp.org>;
        Sun, 03 Nov 2013 20:15:41 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl2.localnet (unknown [IPv6:2002:3289:aaef:0:943d:6087:3027:c588])
	by gondolin.macieira.info (Postfix) with ESMTPSA id C4C3C12C01E
	for <std-proposals@isocpp.org>; Sun,  3 Nov 2013 20:15:40 -0800 (PST)
User-Agent: KMail/4.12 pre (Linux/3.9.10-100+i915fix.fc17.x86_64; KDE/4.11.60; x86_64; git-8054221; 2013-08-01)
In-Reply-To: <CAFk2RUY1f65jz6xH8u6QbBkudp0vzqdnm4H0SfXjie+555DbMA@mail.gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mail=thiago@macieira.org
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:7569
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7569>

On segunda-feira, 4 de novembro de 2013 06:02:39, Ville Voutilainen wrote:
> They cannot? As in, virtual functions cannot be overridden? Are you thinking
> about final here?
>  
> 
> > Overriding a virtual function may change the ABI. *Any* virtual
> > declaration
> > must be visible to all callers.

> Same question, I guess.

Ok, after rereading what I posted, looks like I might not have answered the 
right post. So let me start over:

This thread is about adding methods to a class without having it in the main 
class { } body, which is visible to all users. I support that idea.

However, that must be entirely restricted to non-virtual methods. 

Adding a virtual method, like everyone who has done any binary compatibility 
work knows, is not possible. That includes overrides. Any and all virtual 
methods present in a given class -- whether new or overrides -- must be 
declared in the class body and visible to all users.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
