220 27595 <CAA7YVg2xL34rB8AgN7oLLM_y86XvOrtHue5tG_fZTOjo9doNRg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Viacheslav Usov <via.usov@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: this in non-member functions
Date: Thu, 4 Aug 2016 12:53:55 +0200
Lines: 55
Approved: news@gmane.org
Message-ID: <CAA7YVg2xL34rB8AgN7oLLM_y86XvOrtHue5tG_fZTOjo9doNRg@mail.gmail.com>
References: <CAA7YVg3ObHqk-rfGRqgCqw3D-=u2pOwz=p8NHtC6n9tpBLq-Aw@mail.gmail.com>
 <cf5b6196-63bc-49ff-8a6a-bfdfb8a7ab0e@isocpp.org> <CAA7YVg2BQaVD2MyLyyEWuzWUnqjGrNUUi9eZwy7skjq8=ourvA@mail.gmail.com>
 <2351486.cE391vEbrj@tjmaciei-mobl1> <CAA7YVg1P-mg_pmGwLEpGopuzuDBmcdQ4wv4jYOKo7xyGdxW81g@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a114187e835f90905393cc410
X-Trace: blaine.gmane.org 1470308053 19551 195.159.176.226 (4 Aug 2016 10:54:13 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 4 Aug 2016 10:54:13 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDU6VRPKW4BBBRN5RS6QKGQEHYAMQEY@isocpp.org Thu Aug 04 12:54:08 2016
Return-path: <std-proposals+bncBDU6VRPKW4BBBRN5RS6QKGQEHYAMQEY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f72.google.com ([209.85.215.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDU6VRPKW4BBBRN5RS6QKGQEHYAMQEY@isocpp.org>)
	id 1bVGHl-0003zC-LB
	for gclcip-std-proposals@m.gmane.org; Thu, 04 Aug 2016 12:53:57 +0200
Original-Received: by mail-lf0-f72.google.com with SMTP id k135sf131255221lfb.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 04 Aug 2016 03:53:58 -0700 (PDT)
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
         :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=4kd1XQBBPiMoWd6W6DIZHKHHeyGdJlE+z0m22RAd8HI=;
        b=H6dwsZnIT9d+WtsBGvBHGYRu6hdE8NMCymDhw9Q3W6ZK4McjOqp9s+D3xvGEu1R3aI
         GuC+P8DkN6nyUhX/J+NudyVTlpXcIc2ua1lo3PW6webXkudAcnhWv0NJvQp62J1S7T/z
         8aUmyVl16E0K7vimnFP251pbVmD/Xx06I4ce6gsbPq1vQDhJQTKPMdEUbhsETA3Ln8kq
         1ihohSYpUfa1EImuW9vkWVuc8uKYWZgfZqVPxV7SyDmmIUHRRt90Dvl37ATj5gwjzFaj
         wav6uQg09wYJ2WEGZHUdArcBFC04kET4X374ACX3SJycppnx2T+EjvaQT/12VG94/Zdv
         dKGg==
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:from:date
         :message-id:subject:to: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=4kd1XQBBPiMoWd6W6DIZHKHHeyGdJlE+z0m22RAd8HI=;
        b=ESs6vi0Zdl63Ix9+ZSmDiAhm93P9qbb6d217se8+0cqLlvZXJ7sdxNYyYYt6zZ3xyI
         5cJp5vPWq/u1FOs1+3KQ4PSWdtj361klJiupD0yznv5AzcBK1O3aYFMvCs1A3Bd66ohz
         P0oyYk0+erdcCYcb/1pf56RgoV6PQtPv8nCoiA+NPQEHNBap+LIVO50qYk1BdK68OUUn
         DnUyhaGIWZiQsUrjuSP7agxIdp0ddCvev+HyO16vJcylGYCkP4L0pzQPltr74GxWLQFu
         FvGJUOVLSV9VTvteIej+Wg12abjEBFK3s0dXfQqbF1zjg7h7ngbqY0Upsvs+NG/1E6KP
         ARGg==
X-Gm-Message-State: AEkoouuUejd52bQ6zGlyDnXtRPT9bB2Y5TVL2gV45vAdZwNAVX8nViR1RGEbsDPcu8u4ow==
X-Received: by 10.28.29.8 with SMTP id d8mr4454774wmd.5.1470308037929;
        Thu, 04 Aug 2016 03:53:57 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.46.71.209 with SMTP id u200ls222054lja.6.gmail; Thu, 04 Aug
 2016 03:53:56 -0700 (PDT)
X-Received: by 10.25.158.147 with SMTP id h141mr24895671lfe.63.1470308036800;
        Thu, 04 Aug 2016 03:53:56 -0700 (PDT)
Original-Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com. [2a00:1450:4010:c07::232])
        by mx.google.com with ESMTPS id 79si5423820ljj.1.2016.08.04.03.53.56
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 04 Aug 2016 03:53:56 -0700 (PDT)
Received-SPF: pass (google.com: domain of via.usov@gmail.com designates 2a00:1450:4010:c07::232 as permitted sender) client-ip=2a00:1450:4010:c07::232;
Original-Received: by mail-lf0-x232.google.com with SMTP id f93so179838968lfi.2
        for <std-proposals@isocpp.org>; Thu, 04 Aug 2016 03:53:56 -0700 (PDT)
X-Received: by 10.25.207.129 with SMTP id f123mr20280236lfg.81.1470308036242;
 Thu, 04 Aug 2016 03:53:56 -0700 (PDT)
Original-Received: by 10.25.214.164 with HTTP; Thu, 4 Aug 2016 03:53:55 -0700 (PDT)
In-Reply-To: <CAA7YVg1P-mg_pmGwLEpGopuzuDBmcdQ4wv4jYOKo7xyGdxW81g@mail.gmail.com>
X-Original-Sender: via.usov@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of via.usov@gmail.com
 designates 2a00:1450:4010:c07::232 as permitted sender) smtp.mailfrom=via.usov@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: <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:27595
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/27595>

--001a114187e835f90905393cc410
Content-Type: text/plain; charset=UTF-8

On Thu, Aug 4, 2016 at 12:49 PM, Viacheslav Usov <via.usov@gmail.com> wrote:

> [[bind(ptr)]] { x = 1; } // means ptr->x = 1

We could also specify that [[bind()]] removes any implicit binding, so then
even the implicit this in member bodies would need to be spelled out.

As was stated in this thread, the implicit 'this' sometimes is confusing,
so inhibiting it might be useful.

Cheers,
V.

-- 
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/CAA7YVg2xL34rB8AgN7oLLM_y86XvOrtHue5tG_fZTOjo9doNRg%40mail.gmail.com.

--001a114187e835f90905393cc410
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
hu, Aug 4, 2016 at 12:49 PM, Viacheslav Usov <span dir=3D"ltr">&lt;<a href=
=3D"mailto:via.usov@gmail.com" target=3D"_blank">via.usov@gmail.com</a>&gt;=
</span> wrote:<br><div><br></div><div>&gt; [[bind(ptr)]] { x =3D 1; } // me=
ans ptr-&gt;x =3D 1</div><div><br></div><div>We could also specify that [[b=
ind()]] removes any implicit binding, so then even the implicit this in mem=
ber bodies would need to be spelled out.</div><div><br></div><div>As was st=
ated in this thread, the implicit &#39;this&#39; sometimes is confusing, so=
 inhibiting it might be useful.</div><div><br></div><div>Cheers,</div><div>=
V.</div></div></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/CAA7YVg2xL34rB8AgN7oLLM_y86XvOrtHue5t=
G_fZTOjo9doNRg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">htt=
ps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAA7YVg2xL34rB8Ag=
N7oLLM_y86XvOrtHue5tG_fZTOjo9doNRg%40mail.gmail.com</a>.<br />

--001a114187e835f90905393cc410--

.
