220 33778 <CAFk2RUadaK3Dz_EgKMCp=UP84-VgZHtjnPaRn4yZTnADgUqgnQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: properties?
Date: Thu, 10 Aug 2017 09:35:15 +0300
Lines: 43
Approved: news@gmane.org
Message-ID: <CAFk2RUadaK3Dz_EgKMCp=UP84-VgZHtjnPaRn4yZTnADgUqgnQ@mail.gmail.com>
References: <6ed2bd55-5538-418f-8f1a-263a9958babd@isocpp.org>
 <omgfdk$pkv$1@blaine.gmane.org> <9979b017-fc21-445f-a1d1-0f55f8e7bf3d@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1502346917 21302 195.159.176.226 (10 Aug 2017 06:35:17 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 10 Aug 2017 06:35:17 +0000 (UTC)
Cc: bop@gmb.dk
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBJH5V7GAKGQETBAWS5I@isocpp.org Thu Aug 10 08:35:13 2017
Return-path: <std-proposals+bncBC5JHI7A7ALRBJH5V7GAKGQETBAWS5I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f198.google.com ([209.85.161.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBJH5V7GAKGQETBAWS5I@isocpp.org>)
	id 1dfh3n-0005BZ-7d
	for gclcip-std-proposals@m.gmane.org; Thu, 10 Aug 2017 08:35:11 +0200
Original-Received: by mail-yw0-f198.google.com with SMTP id k20sf135935181ywe.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Aug 2017 23:35:17 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1502346917; cv=pass;
        d=google.com; s=arc-20160816;
        b=X7Qt5iRyJGZQ++JhUZVNlt00fOINxb4PIRdVEBMFLy6b1TmbxHPKQ/nYcAJIdmPaFW
         5I54RxTZYS7vJ4ZS/7V1QOQ6hobjSgrapLxeCJvUPYbZZDTXm7raRECauFC3zDSLtDMK
         /cTwT+hH3CwR0WidvXJrhgu3MTAvs68mAxnBjZ+LMwlSIHNFMUTErYNY9WTDIBNloGOK
         HuKQaArk9D1ZvgBkUhmf/DvbGn1pFkimqhMOi/eARYuf4kdEuf7vySIb3ZykMyO4qzj4
         A/ziQ3hNCmD0gmZAkFFjOGYs7BI3rQERSYoMb3tzqIILV8mIDWKSllzLH2GpZxsrkX/s
         b+OQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:cc:to:subject:message-id
         :date:from:references:in-reply-to:mime-version
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=1IrRiXjxLRPTi8MmMg9XeYYP0oBRIPFsh2KB/NfhZlo=;
        b=P9+i0znOQ8ZigukZY7VogGaMYKHdNdHeLOu3uSHW92WdlCMzChdOpEU5AwWFlxkL9f
         HAvzne4lqIJtU5vLf7UeufELlrX/qOZ2HpBB8to41LANsp1wfAdwktT38rVXTJP/NfKt
         Le0zRPPGx0SCaXR2B4dVpJWQQh/3gEu2523SfkDbVDfRbVelPW00r3SBJ1MeucVPueCh
         KN0BnWnHWN6nZbKzS6TJeCxxyXXgc+BtZL2KxvPgtv0h8yUHv2K8DyIHDBEUvNs1WmJw
         64+Xk0rn+L0gzT/XNQeaUlAi0P/LLZ5pcq8CAESAZSVGjsxO4wSzcKBdPQY5xRVo6MIt
         8xPw==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=HbjkDhhP;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c08::243 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :cc:x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=1IrRiXjxLRPTi8MmMg9XeYYP0oBRIPFsh2KB/NfhZlo=;
        b=XfqG8rpsYbcBUUJwMUMgNv8hU1BOfvAAQe2i71aXfNukL6/bnMNjfNG89saLgzkNqR
         vlq0mZCZUTl15lGYy8NWhhW6RnvmOw3dcNWH78HJCKqxYtf9mceT+fhccoREYflOnL/9
         Jj4GmnRprLtWr7l7lLSl0aOcaY4x75rzXdleD/i8Fxa/DmF7NuQz0hKfP8CR0sMLl2pN
         p3nfqWsR4xthYcrj0QkQFj2Srf3c4rJZYmCDCZLDGgr4/4XcxeMRx1Qg6Un3fBPWOWBj
         OgRRSAn67EAVwHjABdISOgVvwEudhEryuyXQ6tDfuJqvi+F1+Xl28vWZaqrk2U+Y8Bx/
         SUvQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:cc:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=1IrRiXjxLRPTi8MmMg9XeYYP0oBRIPFsh2KB/NfhZlo=;
        b=sqsvWepAWprxu+2qdtUaUZ5/CMjlkOchCxVr99G12twmETcrN5xdatcZYJ7V6E9bug
         6u/xOrSeFt3Vd83l9VMbKq9DRP7b2nJsOfehtoFJEMM/i95Scwu2QsIeJTSK/LGFnhtG
         6zxJoCUTalcSW25Tn6iwQrhVwEU79W59XCSQoarbbZKgBm5H2vQgLy6sC1Y6WcrXPyZD
         YVRSabyz33vglAFfZI+xdidr7sgDqQNWXabJrvDBZtGL8rk2faSfU8d2PGPlOTLl0ZyF
         nkvofMedq8fdgc/LtqwSEfOwNmh8Fo8oy+Ak7wU6hdgDP283YuBo0zHDQkZt8W3vI1ZK
         1MKw==
X-Gm-Message-State: AHYfb5hSJnLCjcAYg7P2lCJMMJl8oqnsti+Rnn9Pf48cFxDV/efIKgaM
	PARLyPA0sMj8BiRh
X-Received: by 10.129.120.72 with SMTP id t69mr6940024ywc.213.1502346917448;
        Wed, 09 Aug 2017 23:35:17 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.169.79 with SMTP id s76ls5724105ioe.3.gmail; Wed, 09 Aug
 2017 23:35:16 -0700 (PDT)
X-Received: by 10.176.81.34 with SMTP id e31mr7745707uaa.73.1502346916082;
        Wed, 09 Aug 2017 23:35:16 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1502346916; cv=none;
        d=google.com; s=arc-20160816;
        b=X4rj3SRKwSozHC5dvgsm8fdyce7ABdt2Gct0wqnwG0HsHNtLbNuFPI6TCwGK1QtgD3
         ASpbK+zGnKY0HKSkU2PN550ZdOe2i1rb2dUQ8I1XaM7z+1LET0ZzhoK2pmk3aVMovYVQ
         5hT8xYARqjFVKCFOU7zlzrzIrfmX7Fhu12AOGVMOjap3m85RSStsTusT8opL1Xpj7TdQ
         jlv4v0ArE9OpJ2oRAAwfrb1XYIlNW23DLow2TLNL25c93KEDLy8FyWtfGaV94QZ8/y7s
         5ZoKDMy9Cl1v+5cijsczkWXtWI2Q2rHL4IHPl5x94yOwOBQEfPBGHMvugDiAbwLbwR8H
         mxSQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=cc:to:subject:message-id:date:from:references:in-reply-to
         :mime-version:dkim-signature:arc-authentication-results;
        bh=WLEMZ45aNnmyYXLyKDUxuap6jpFLt7n4SA3Xq2B/yX4=;
        b=GgJNhqCuaIzoqoqigYBOl61qZc3E8MtCLoLAOt/hhUQMElOmD98BnanRqMgk4lJ22N
         +oqTLNDqpdCNN+JcgZ6MvEV0YFjVKO8icjKHlpbeKTaL3TkrE/GI3cszs8f3hQK224bT
         e+JCpVUjkVoVqfl1tn4GsNJefmUAhIpJKd+GCWKvteBzr/4mnzPX7+QViAK1VIDq4MPc
         ibEYaoxrbHH84/pYtPoHj7RmReCyT0VQjpL2/YzvDk0KZOw+G9/so9cnlPVJHNnUxk7x
         ElB1ViaBS289KVgpi3Pf4AqW+JLE6vUyKYjWFS/NrTHLq1/UP9MGQGQBF2kdkxcd+kUK
         8E2Q==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=HbjkDhhP;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c08::243 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-ua0-x243.google.com (mail-ua0-x243.google.com. [2607:f8b0:400c:c08::243])
        by mx.google.com with ESMTPS id l27si3308434uag.218.2017.08.09.23.35.16
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 09 Aug 2017 23:35:16 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c08::243 as permitted sender) client-ip=2607:f8b0:400c:c08::243;
Original-Received: by mail-ua0-x243.google.com with SMTP id 80so5001363uas.4
        for <std-proposals@isocpp.org>; Wed, 09 Aug 2017 23:35:16 -0700 (PDT)
X-Received: by 10.159.60.34 with SMTP id u34mr7449815uah.69.1502346915635;
 Wed, 09 Aug 2017 23:35:15 -0700 (PDT)
Original-Received: by 10.103.103.65 with HTTP; Wed, 9 Aug 2017 23:35:15 -0700 (PDT)
In-Reply-To: <9979b017-fc21-445f-a1d1-0f55f8e7bf3d@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=HbjkDhhP;       spf=pass
 (google.com: domain of ville.voutilainen@gmail.com designates
 2607:f8b0:400c:c08::243 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=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: <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:33778
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33778>

On 10 August 2017 at 09:19, Nicol Bolas <jmckesson@gmail.com> wrote:
> 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.


Gee, data() could just return a reference.

-- 
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/CAFk2RUadaK3Dz_EgKMCp%3DUP84-VgZHtjnPaRn4yZTnADgUqgnQ%40mail.gmail.com.

.
