220 8099 <52A7FDA0.2010100@wanadoo.fr> article
Path: news.gmane.org!not-for-mail
From: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Proposal: Private extension methods
Date: Wed, 11 Dec 2013 06:52:32 +0100
Lines: 45
Approved: news@gmane.org
Message-ID: <52A7FDA0.2010100@wanadoo.fr>
References: <05028bfb-6f6f-4ee8-9a6e-7e6eaa3a877a@isocpp.org>	<64d699c7-62e0-48ce-9c58-c9b7a6038832@isocpp.org>	<CAOU91ONGstr-ieMJnQ0VB3aDqf2FJmRZef3U_xQYPaR=BsDXug@mail.gmail.com>	<1902602.AxIk4I1HBX@tjmaciei-mobl2>	<52A79CD3.50802@wanadoo.fr> <CAFk2RUacEe5dsjONcEiBa9MSxmKh9TCpA5A8-sNAA2xc=v-VCQ@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; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1386741149 1131 80.91.229.3 (11 Dec 2013 05:52:29 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 11 Dec 2013 05:52:29 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDH67CONY4PBBIX3T6KQKGQE7FLESMI@isocpp.org Wed Dec 11 06:52:35 2013
Return-path: <std-proposals+bncBDH67CONY4PBBIX3T6KQKGQE7FLESMI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-fa0-f70.google.com ([209.85.161.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDH67CONY4PBBIX3T6KQKGQE7FLESMI@isocpp.org>)
	id 1Vqcip-0004Pe-3Y
	for gclcip-std-proposals@m.gmane.org; Wed, 11 Dec 2013 06:52:35 +0100
Original-Received: by mail-fa0-f70.google.com with SMTP id n1sf9019278fan.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 10 Dec 2013 21:52:34 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to
         :subject:references:in-reply-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:content-transfer-encoding;
        bh=VTHMsZT2QzKueQ84VhzMhvUD8kzT/s7u9R46f+UqDJs=;
        b=lYkwCXeUOqI3Qkh5BTvOYHO7N4s1hGFnsh6x2eFAf7fU0x3iIrShq2g6/o6WOGVAJn
         xrTo/R8cAAHm2ExjXisQ8yFHaW5wT2EpBMSOyItTnigN++29LJLBvhy2KscnSfsmLaTN
         ViX5P8RvrNlve0lgPOdrAKpQs6HnaP++toBQfpbQX589ncKYSItkBPxfWmhhxgy5UmrM
         VDfOM3w2c7/ijIMX4hAVvr1TLpmuP/sVoSrCkuP3KQOixAP5F/c2BFQM7dz++ox314A3
         0eOujs0vykJ/aUaRBPdPbfpITX8qev+3umS6plqB/ZBNLOi+7H6/EcI1jGXAxeuVEN2h
         /FT 
X-Gm-Message-State: ALoCoQnghf5juxFkQHsFDw5QTj8kiJr1XwM3D2FE9WfO5LLXKS5H/SB4F/lxUTcJxxpX0JvQP5z7
X-Received: by 10.15.42.72 with SMTP id t48mr14690451eev.4.1386741154670;
        Tue, 10 Dec 2013 21:52:34 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.218.130 with SMTP id pg2ls842988wic.41.canary; Tue, 10 Dec
 2013 21:52:33 -0800 (PST)
X-Received: by 10.180.211.237 with SMTP id nf13mr22451380wic.55.1386741153800;
        Tue, 10 Dec 2013 21:52:33 -0800 (PST)
Original-Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr. [80.12.242.125])
        by mx.google.com with ESMTP id om7si8008044wjc.42.2013.12.10.21.52.33
        for <std-proposals@isocpp.org>;
        Tue, 10 Dec 2013 21:52:33 -0800 (PST)
Received-SPF: neutral (google.com: 80.12.242.125 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) client-ip=80.12.242.125;
Original-Received: from iMac-de-Vicente-Botet-Escriba.local ([92.139.147.80])
	by mwinf5d57 with ME
	id 05sZ1n0041kJYz8035sZTS; Wed, 11 Dec 2013 06:52:33 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.1.1
In-Reply-To: <CAFk2RUacEe5dsjONcEiBa9MSxmKh9TCpA5A8-sNAA2xc=v-VCQ@mail.gmail.com>
X-Original-Sender: vicente.botet@wanadoo.fr
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 80.12.242.125 is neither permitted nor denied by best guess
 record for domain of vicente.botet@wanadoo.fr) smtp.mail=vicente.botet@wanadoo.fr
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:8099
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8099>

Le 11/12/13 01:20, Ville Voutilainen a =E9crit :
> On 11 December 2013 00:59, Vicente J. Botet Escriba
> <vicente.botet@wanadoo.fr> wrote:
>> Le 10/12/13 23:46, Thiago Macieira a =E9crit :
>>> class Bar;
>>> class Foo
>>> {
>>>       // ...
>>> private:
>>>       int k;
>>>       friend Bar;
>>> };
>>>
>>>
>>> /// hack.cpp
>>> class Bar
>>> {
>>>       static int &get_k(Foo *d) { return d->k; }
>>> };
>>>
>>>
>>> To be honest, I don't know what the standard says about two different
>>> declarations of the same class in the same application but not the same
>>> translation unit. But the above will compile in most ABIs.
>> This violated the ODR.
>
>
> Which bit of it does that, exactly?
>
I expect that the class Bar will be defined somewhere else and that it=20
is not only here to hack, but maybe I miss something.

Vicente

--=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/.

.
