220 33776 <9979b017-fc21-445f-a1d1-0f55f8e7bf3d@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: properties?
Date: Wed, 9 Aug 2017 23:19:00 -0700 (PDT)
Lines: 110
Approved: news@gmane.org
Message-ID: <9979b017-fc21-445f-a1d1-0f55f8e7bf3d@isocpp.org>
References: <6ed2bd55-5538-418f-8f1a-263a9958babd@isocpp.org>
 <omgfdk$pkv$1@blaine.gmane.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_471_293108276.1502345940075"
X-Trace: blaine.gmane.org 1502345945 18109 195.159.176.226 (10 Aug 2017 06:19:05 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 10 Aug 2017 06:19:05 +0000 (UTC)
Cc: bop@gmb.dk
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBBVHVV7GAKGQEB3FRP2Q@isocpp.org Thu Aug 10 08:18:57 2017
Return-path: <std-proposals+bncBCEKFTV6ZUMBBVHVV7GAKGQEB3FRP2Q@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+bncBCEKFTV6ZUMBBVHVV7GAKGQEB3FRP2Q@isocpp.org>)
	id 1dfgo4-0004BW-GQ
	for gclcip-std-proposals@m.gmane.org; Thu, 10 Aug 2017 08:18:56 +0200
Original-Received: by mail-pf0-f198.google.com with SMTP id r187sf84417590pfr.8
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Aug 2017 23:19:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:cc: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=r3d4Ods1ylQYesbckzjGkK6Ii9x+0VEZjPsE4TrFn+o=;
        b=wDBI0mnm2xVYW+y64ChuorUTs7XtIEAGjLI/GvhjewhsluZ2RuFzCHD1peXW12epCA
         EHA5j4c2tn/GJwee9cWfQ/LGLd13n6UNBKjcf/guPW7zDTOfEMHiLEvBReypEut/njDS
         fz5OwISbR3bJ9tW0giyHBY5BH7+jlMLT6m/Uxwei425PSIGm6CL5Iyq9bzTpKeU3gq3F
         pA6HnK3Xi2eWMyKw854qaLlb1cRS0A/m3DINNaHlwz/nplGFyfvlLcL3bMULYNhN3PW/
         80VbNTFy78XtwqEnM4ze+CcVA2LFwb6bfzRO4MuPGjSwGPTPy4iqaRU+i8G4UFZHXgSW
         bl0g==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:cc: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=r3d4Ods1ylQYesbckzjGkK6Ii9x+0VEZjPsE4TrFn+o=;
        b=U9A5zUIIBaaio350oy9Wne4rC3AtZLxoIm9ee5Tf0pPq6qux+z8yAKQIitiPc68aFI
         gWYIhkLCSBSJDePPCt3/AT+f/bqupk/MElGnoMaix9OTCnoudED07J1oyaa6djR9E0QJ
         w4YAnPmKWdDABdr7m9Ihgazd76MeOKErCJ9m4HbqTunZbsRDIBUnXAMS0umI0sfEre17
         qLsAHR+nXbCwKeKOphq9vkrprRSOgKikHE5q96PtTxx3DBCUEKrcWWpQzs6SdsS5V/mA
         h3Q3IuongA9xWuOm2J2qqgHwJ0yio3nmtV5ykDWmKzBYSQRZ4V+yEw1v8iM3NdhGLmX6
         Ebbw==
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:cc: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=r3d4Ods1ylQYesbckzjGkK6Ii9x+0VEZjPsE4TrFn+o=;
        b=LomjgMdSvFvN3zXL/kDIIcEQpQFdNFTrFxcXIeGfQFDm9Jj8+Cl1s5KU8BPK6wVPYK
         J26SRPnPWB816XKCJmxDqfakorjjyx4QsXbJ2z+fMFe/RbOHQEgYNXemle7BYlj1/Qaf
         jRX3C14TlIl89etzC1fdJL9xpkraGYLCqzSEE9zjSdMbynESnGrg1p/FO5ML9rBrz7Nk
         bFMktGmPSFOXRp9XJu9QBR8Bz+2wm8l730wuE3WXMY2XdVCHN+YZK+50rXc+HbYkqJUN
         FRkuV0v13g9NCrxeDLfkiQCf1oobHrsVNKAxjygWGCe957tdfL8RTW0UIdQn1Y3/48Hi
         lydg==
X-Gm-Message-State: AHYfb5irgnYkHdJ0qe84sAF4RuzhQlUMOOYT7EtkRNxFB6Og4PAvNMUY
	dEYxySdHwqE1a7VO
X-Received: by 10.99.174.3 with SMTP id q3mr6992049pgf.84.1502345941862;
        Wed, 09 Aug 2017 23:19:01 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.140.80 with SMTP id o77ls5814280iod.27.gmail; Wed, 09 Aug
 2017 23:19:00 -0700 (PDT)
X-Received: by 10.31.99.198 with SMTP id x189mr58594vkb.24.1502345940514;
        Wed, 09 Aug 2017 23:19:00 -0700 (PDT)
In-Reply-To: <omgfdk$pkv$1@blaine.gmane.org>
X-Original-Sender: jmckesson@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:33776
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33776>

------=_Part_471_293108276.1502345940075
Content-Type: multipart/alternative; 
	boundary="----=_Part_472_752484452.1502345940076"

------=_Part_472_752484452.1502345940076
Content-Type: text/plain; charset="UTF-8"

On Wednesday, August 9, 2017 at 10:12:36 PM UTC-4, Bo Persson wrote:
>
> On 2017-08-09 19:32, Evan Teran wrote: 
> > I never brought it up before because I assumed that it MUST have been 
> > discussed in the past... 
>
> Oh, yeah... 
>
> > 
> > The idea being of course that this makes code such as the following 
> valid: 
> > 
> > | 
> >      T value; 
> >      value.data =10; 
> >      std::cout <<value.data <<"\n" 
> > | 
> > 
>
> This could already work if you just add () to each use of data.  :-)
>

Would it? Would this:

some_function(value.data());

Would that allow `some_function` to set `data`'s value? To do that, you 
would need to make `data()` return a proxy object, which can be converted 
into the appropriate type, but can also be assigned to the appropriate type 
and otherwise treated exactly like a reference to the other type.

That's hardly "just" adding something.

-- 
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/9979b017-fc21-445f-a1d1-0f55f8e7bf3d%40isocpp.org.

------=_Part_472_752484452.1502345940076
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Wednesday, August 9, 2017 at 10:12:36 PM UTC-4, Bo Pers=
son wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left:=
 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On 2017-08-09 19:32,=
 Evan Teran wrote:
<br>&gt; I never brought it up before because I assumed that it MUST have b=
een=20
<br>&gt; discussed in the past...=20
<br>
<br>Oh, yeah...
<br>
<br>&gt;=20
<br>&gt; The idea being of course that this makes code such as the followin=
g valid:
<br>&gt;=20
<br>&gt; |
<br>&gt; =C2=A0 =C2=A0 =C2=A0T value;
<br>&gt; =C2=A0 =C2=A0 =C2=A0value.data =3D10;
<br>&gt; =C2=A0 =C2=A0 =C2=A0std::cout &lt;&lt;value.data &lt;&lt;&quot;\n&=
quot;
<br>&gt; |
<br>&gt;
<br>
<br>This could already work if you just add () to each use of data. =C2=A0:=
-)<br></blockquote><div><br>Would it? Would this:<br><br><div style=3D"back=
ground-color: rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-=
style: solid; border-width: 1px; overflow-wrap: break-word;" class=3D"prett=
yprint"><code class=3D"prettyprint"><div class=3D"subprettyprint"><span sty=
le=3D"color: #000;" class=3D"styled-by-prettify">some_function</span><span =
style=3D"color: #660;" class=3D"styled-by-prettify">(</span><span style=3D"=
color: #000;" class=3D"styled-by-prettify">value</span><span style=3D"color=
: #660;" class=3D"styled-by-prettify">.</span><span style=3D"color: #000;" =
class=3D"styled-by-prettify">data</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">());</span><span style=3D"color: #000;" class=3D"st=
yled-by-prettify"><br></span></div></code></div><br>Would that allow `some_=
function` to set `data`&#39;s value? To do that, you would need to make `da=
ta()` return a proxy object, which can be converted into the appropriate ty=
pe, but can also be assigned to the appropriate type and otherwise treated =
exactly like a reference to the other type.<br><br>That&#39;s hardly &quot;=
just&quot; adding something.</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/9979b017-fc21-445f-a1d1-0f55f8e7bf3d%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/9979b017-fc21-445f-a1d1-0f55f8e7bf3d=
%40isocpp.org</a>.<br />

------=_Part_472_752484452.1502345940076--

------=_Part_471_293108276.1502345940075--

.
