220 33120 <4f15e79b-fb2d-4609-94e8-e9e7c0115eab@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Daemon Snake <swac31@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Struture dereference operator as fallback for
 missing structure reference
Date: Wed, 5 Jul 2017 00:41:41 -0700 (PDT)
Lines: 60
Approved: news@gmane.org
Message-ID: <4f15e79b-fb2d-4609-94e8-e9e7c0115eab@isocpp.org>
References: <e2d61492-c318-46b1-89e1-94f9697875dd@isocpp.org>
 <CAPCFJdSzcO6_4fWYE6SjDpTKTuU1NsGdZCmMzEVJF=Lajvgpew@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_978_311487368.1499240502012"
X-Trace: blaine.gmane.org 1499240508 12178 195.159.176.226 (5 Jul 2017 07:41:48 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 5 Jul 2017 07:41:48 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCX2P6W5SEDBBNVQ6LFAKGQEFFG37QA@isocpp.org Wed Jul 05 09:41:44 2017
Return-path: <std-proposals+bncBCX2P6W5SEDBBNVQ6LFAKGQEFFG37QA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pf0-f198.google.com ([209.85.192.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCX2P6W5SEDBBNVQ6LFAKGQEFFG37QA@isocpp.org>)
	id 1dSewM-0002fY-Pd
	for gclcip-std-proposals@m.gmane.org; Wed, 05 Jul 2017 09:41:38 +0200
Original-Received: by mail-pf0-f198.google.com with SMTP id c23sf104723984pfe.11
        for <gclcip-std-proposals@m.gmane.org>; Wed, 05 Jul 2017 00:41:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=5bAqJERpytzC3WQWkexHx9ovhoMsak4Vgsn1unzn5PU=;
        b=K0dsVT1r8OWLSvxsGRzHUQf5yuoOf/H5TzA0xErI7u+OGOVnr/Gb3h0seD5isL6ep6
         1Iogwne9zp8CtDiDlcMAl5cBnL0e5OtMfQ6uPKSAr6nEz78cpw2LkpFeIjpTw4ijnAgn
         0Lpgmz8B2PXAR8sA4fIxiYayNucHFeG/eMVImwBNW0olSqjg/qJLLGnuwI4mIOj/aNJT
         w0gB8iewZR9OrCM1pm61JkUUYpumEL5KmsvTWHMzmhcIEZZy4GkQSe/S1dNuK/YbXMv4
         wnLb9ryP9Gx+tL/tYCHxH2RqX5izOxzV9z6Z9Y9JnL0glP1+2yBk9ZDZmifx+Hq2TsyU
         Ls6A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=5bAqJERpytzC3WQWkexHx9ovhoMsak4Vgsn1unzn5PU=;
        b=UcwnSyNo9K5a9e7NUADYMCU2uiwBxxJArf0ro8nCMQySsskz0sFttnZ+QVdE6y1t8w
         ZteTp00YiRjt3ITZSo9c7XxOhUGvAZdEp8r1gKuTDVHe7v73q0POrEHW8uT819stC+/0
         SU5ohYgLY91vDutNwTQo17HxWBRcNMJs8IGMOk/0kDTWCBJ23om4Iu641F+/a+nZMKeP
         shdSW6IrPoHoVfU7cJ69luVE1EwwijG8sl45uEZn8Lr3kT8rsBX3uAUS2IL2iBwiIbtq
         FWU5EsGiLhtjC4435vcGhiq6OO1BJ8NESqwZOVW71cxVuf5vq6BRqjFHnr2uCuP51g97
         AL6A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=5bAqJERpytzC3WQWkexHx9ovhoMsak4Vgsn1unzn5PU=;
        b=Ec6wHZI2suUGfMuxU0zxcvPxmOV5i0i1lyWXvClqRU+903XHaMPdKXsQ8vWqtec6Ux
         uapHKM9GHtwoxwW1wRFU+c0A3uaXCXd0mWnw/9AgJVq8ezBCABjG1jPhZ6RAUyn6CHSd
         dViBhe1Lhzu2yGdHPZhsLvk4oddh/LsnaXs2BQTMgwRSS9SYtDrKX6GETHk9Sdj+Er5w
         vAwfOzqffdXOQQWM/r/v542LAzlhxp9MKhfFScWZRBUhViu6eYmapkBeZAJhtolL9gqS
         cfTCJ5jgejnXUsa2XYfCS7cVBkVrYFDoysUVQCzHM+3eOeEXH3EXc2bDQgJFSQk8fZTJ
         j1IQ==
X-Gm-Message-State: AIVw110UGznURiWB88KX82NOs2TWHzDXEM7bcpv9awmJCA4/Rn0Tt8gW
	/kpq2oEtukPx3JZe
X-Received: by 10.98.155.142 with SMTP id e14mr10218117pfk.17.1499240503852;
        Wed, 05 Jul 2017 00:41:43 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.16.153 with SMTP id 25ls8685984ioq.37.gmail; Wed, 05 Jul
 2017 00:41:42 -0700 (PDT)
X-Received: by 10.36.26.134 with SMTP id 128mr1171188iti.3.1499240502569;
        Wed, 05 Jul 2017 00:41:42 -0700 (PDT)
In-Reply-To: <CAPCFJdSzcO6_4fWYE6SjDpTKTuU1NsGdZCmMzEVJF=Lajvgpew@mail.gmail.com>
X-Original-Sender: swac31@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: <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:33120
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33120>

------=_Part_978_311487368.1499240502012
Content-Type: multipart/alternative; 
	boundary="----=_Part_979_1743032249.1499240502012"

------=_Part_979_1743032249.1499240502012
Content-Type: text/plain; charset="UTF-8"

"1)" Is already the case.

struct A { int i; };

struct  B {
  int i;
  A m;
  A &operator ->() { return m; }
};

"B().i" now or with the fallback would still refer to B's "i";
If the dev mistakes "." with "->" now or with the fallback the compiler 
wouldn't give him any indications either way.

-- 
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/4f15e79b-fb2d-4609-94e8-e9e7c0115eab%40isocpp.org.

------=_Part_979_1743032249.1499240502012
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">&quot;1)&quot; Is already the case.<div><br></div><div>str=
uct A { int i; };</div><div><br></div><div>struct =C2=A0B {</div><div>=C2=
=A0 int i;</div><div>=C2=A0 A m;</div><div>=C2=A0 A &amp;operator -&gt;() {=
 return m; }</div><div>};</div><div><br></div><div>&quot;B().i&quot; now or=
 with the fallback would still refer to B&#39;s &quot;i&quot;;</div><div>If=
 the dev mistakes &quot;.&quot; with &quot;-&gt;&quot; now or with the fall=
back the compiler wouldn&#39;t give him any indications either way.</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/4f15e79b-fb2d-4609-94e8-e9e7c0115eab%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/4f15e79b-fb2d-4609-94e8-e9e7c0115eab=
%40isocpp.org</a>.<br />

------=_Part_979_1743032249.1499240502012--

------=_Part_978_311487368.1499240502012--

.
