220 16057 <CAFk2RUYDpB4q2VhwSsePMhOASwpj78d49hsmDLuLYrgARTbcow@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: const T* operator->() const
Date: Thu, 5 Feb 2015 23:35:23 +0200
Lines: 32
Approved: news@gmane.org
Message-ID: <CAFk2RUYDpB4q2VhwSsePMhOASwpj78d49hsmDLuLYrgARTbcow@mail.gmail.com>
References: <56a7727d-9839-45c9-be72-a6ecb61f38c9@isocpp.org>
	<CAFk2RUbDL_BedgBP_688mThXS2FfdZP=vyBjUHatvyW5qYvGEQ@mail.gmail.com>
	<467ea911-87a1-483d-8680-22429bfd7c34@isocpp.org>
	<71a46a6b-d0b5-4af7-b89c-fd67b505d22f@isocpp.org>
	<a4dccbc1-16ef-49cb-927f-476416c7a369@isocpp.org>
	<CAGMoNKujqEBKeJbK-_Nen5NcwXhZN9AUxrjJkxAfFXBOO7ZQ6w@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1423172126 28823 80.91.229.3 (5 Feb 2015 21:35:26 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 5 Feb 2015 21:35:26 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRBHGEZ6TAKGQEVUKDXBY@isocpp.org Thu Feb 05 22:35:26 2015
Return-path: <std-proposals+bncBC5JHI7A7ALRBHGEZ6TAKGQEVUKDXBY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f199.google.com ([209.85.214.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBHGEZ6TAKGQEVUKDXBY@isocpp.org>)
	id 1YJU57-0006C0-Ue
	for gclcip-std-proposals@m.gmane.org; Thu, 05 Feb 2015 22:35:26 +0100
Original-Received: by mail-ob0-f199.google.com with SMTP id nt9sf63316917obb.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 05 Feb 2015 13:35:25 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type: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=5eFz2aemA7t7kI51mgVhLcGdNctSzsG+U32sTbpBPTY=;
        b=F0VQKstiun4vtDSejbB1tUz8FIlM45ZRY8ZthXS0s8Xi7hP3F0b4gN0RIGnRfNmP3R
         HEznhWc8cmRrah31RHUoyulEP86pJfw9dANw6Qr2VenCiNKR5MLonpImYF6IP+Zy4zfJ
         7WERXWwI9PW/K+66+uDgghQwaQMHqTsj0oFdUuA6HIOeuBeK/jEoM7oec9e8Tu3HrR4b
         RPECwiyKx7DYsYPmY4hz8Dro8fPRH97bAfmSK3Q5fqJu6RPnDrQb5iMbqjnYR5Se9dN0
         LPM/7o6huNv51h2KGkQR70eztxQO6JhjK4njDOhrl8G4slc2hKrNkhK2zctC+qi4Frdj
         AuFA==
X-Gm-Message-State: ALoCoQmctFFl+nQnYb68mscAh9vPJ/SFhGyFLjm0kUqyVG8MSlLbdKPO2ZfsgxccsFAaBdzKgrml
X-Received: by 10.182.143.34 with SMTP id sb2mr220819obb.27.1423172125046;
        Thu, 05 Feb 2015 13:35:25 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.152.134 with SMTP id a128ls601491ioe.20.gmail; Thu, 05 Feb
 2015 13:35:24 -0800 (PST)
X-Received: by 10.50.171.170 with SMTP id av10mr713181igc.28.1423172124431;
        Thu, 05 Feb 2015 13:35:24 -0800 (PST)
Original-Received: from mail-ig0-x22c.google.com (mail-ig0-x22c.google.com. [2607:f8b0:4001:c05::22c])
        by mx.google.com with ESMTPS id y8si332742icx.39.2015.02.05.13.35.24
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 05 Feb 2015 13:35:24 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4001:c05::22c as permitted sender) client-ip=2607:f8b0:4001:c05::22c;
Original-Received: by mail-ig0-f172.google.com with SMTP id l13so1524035iga.5
        for <std-proposals@isocpp.org>; Thu, 05 Feb 2015 13:35:23 -0800 (PST)
X-Received: by 10.50.118.97 with SMTP id kl1mr658400igb.23.1423172123759; Thu,
 05 Feb 2015 13:35:23 -0800 (PST)
Original-Received: by 10.36.0.4 with HTTP; Thu, 5 Feb 2015 13:35:23 -0800 (PST)
In-Reply-To: <CAGMoNKujqEBKeJbK-_Nen5NcwXhZN9AUxrjJkxAfFXBOO7ZQ6w@mail.gmail.com>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 2607:f8b0:4001:c05::22c as
 permitted sender) smtp.mail=ville.voutilainen@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=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: <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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:16057
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/16057>

On 5 February 2015 at 23:23, mobi phil <mobi@mobiphil.com> wrote:
> Well... ideas are often coming from mistakes that are conceptually not
> necessarily mistakes in a certain context.
> The "->" operator is an unary operator, though intuitively myself I tend
> often to think it as as a binary operator, with second parameter what is on
> the right side. Definitively the language would be richer if there would be
> a mechanism to have overload also based on the right hand. Obviously one
> would need to support stuff like:
>
> (this is rather meta-C++)
> template<Type>
>   Widget::operator->(  RightHandType ) {
>       return (what is intended).RightHandType;
> }
>
> but this is just yet another mental-*turbation, far from ever taken
> seriously.
>
> Definitively it would help to implement what I thought for COW.


Such an operator-> is certainly something that I'd hope to ultimately see as
an extension of the current reflection work.

-- 

--- 
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/.

.
