220 27698 <57A8BAE6.3090102@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: this in non-member functions
Date: Mon, 8 Aug 2016 13:01:26 -0400
Lines: 22
Approved: news@gmane.org
Message-ID: <57A8BAE6.3090102@gmail.com>
References: <CAA7YVg3ObHqk-rfGRqgCqw3D-=u2pOwz=p8NHtC6n9tpBLq-Aw@mail.gmail.com>
 <2351486.cE391vEbrj@tjmaciei-mobl1>
 <CAA7YVg1P-mg_pmGwLEpGopuzuDBmcdQ4wv4jYOKo7xyGdxW81g@mail.gmail.com>
 <4866840.PQO7Sghe0W@tjmaciei-mobl1>
 <CAA7YVg3U_WUMmQP=jfH-KOdLZB0ALoXUmKcCmw35xWnn59m97g@mail.gmail.com>
 <CACGiwhHWtr1b-_atUGHk1_MVSzimbJotFWc9iVJn=2pUQs8Ztw@mail.gmail.com>
 <CAA7YVg2ogjB+QUxPaeNLWROpdJuc0Gy=EC10eNuA6Rs4NkieAA@mail.gmail.com>
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 1470675697 25775 195.159.176.226 (8 Aug 2016 17:01:37 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 8 Aug 2016 17:01:37 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.1.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBBZ7VUK6QKGQE2LHBNGI@isocpp.org Mon Aug 08 19:01:32 2016
Return-path: <std-proposals+bncBC37LBFWUIFBBZ7VUK6QKGQE2LHBNGI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f200.google.com ([209.85.161.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBZ7VUK6QKGQE2LHBNGI@isocpp.org>)
	id 1bWnvc-00058Q-FG
	for gclcip-std-proposals@m.gmane.org; Mon, 08 Aug 2016 19:01:28 +0200
Original-Received: by mail-yw0-f200.google.com with SMTP id f123sf563927503ywd.2
        for <gclcip-std-proposals@m.gmane.org>; Mon, 08 Aug 2016 10:01:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:from:message-id:date:user-agent:mime-version
         :in-reply-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=4NPHm1TZyTKanEoMt7Tf64ZkvjdzHXFWBf8GUeuEItA=;
        b=C9JvYHklOc9LgCow/1qf4U6fiCnkKu0lITeKtyA2R1t3pSWM4tvu0mf+9rjAx2Lm62
         Kyz/o2+aRT7gvRozXCycBj+5xghBQFugmo6z8ad4StRRB+pq9VahuYmLNWQqHxpEyVf7
         1wC/wogXi9AZjuYXyl1HRgdIGclLFr3Zz2w/YCFAc722HFcjCBh48fIUB+daB9TfEcpX
         LUbU17Lyip+Kzs6fqK/2jTsPjnjt9RHfS8Vxvx/e2a3jWpCngLrGvj7cHHEZ3zpnPAC/
         tXHHT/wHUMOjGcP3tWiFDm5n96kzIb19r89q1UuAsh9aQz5oaQQfX86kThrDbAf3Xne+
         5aMw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-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=4NPHm1TZyTKanEoMt7Tf64ZkvjdzHXFWBf8GUeuEItA=;
        b=m27q0zDw8ASTyXsmbo9uFGcYG6Q2qnNNrsiT49WMnqvRQstRgfqfOsT3g2KVG8VbY+
         TjwyWOQjLNRyYrphAOZFBk/AhplJ0IWR6iFHUTC4zxWqpsy6whj2HyVjcTVIMk3pVoIs
         fXuCVRVxhCiDjJ9d+EHJjnDV4sqT8bir2m7iz4z1pyfI4VxjaT3h2Ae3IGNDjPTC6Jao
         8E1pxciEXshMAvdG4Ci27KDUypHEeqd4gf00A2l2ay8p6zog1ZWRictYSHeZDSThMkKc
         RzuWpzLB5HQxVMrAm6WSLSNkIz9+5XV8qy83t4lgMytkhtZmvw83s/xwpvSP7hBq3OO5
         4Bqw==
X-Gm-Message-State: AEkoouvXy9ta5W4EYZmEMs2JCh0S4JY27gTTUgvIFjsq8weD1sK29zc8qAeLvTN2jOngoQ==
X-Received: by 10.129.152.129 with SMTP id p123mr78890101ywg.15.1470675688539;
        Mon, 08 Aug 2016 10:01:28 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.52.177 with SMTP id g46ls10617297otc.36.gmail; Mon, 08 Aug
 2016 10:01:27 -0700 (PDT)
X-Received: by 10.55.5.17 with SMTP id 17mr28445894qkf.280.1470675687577;
        Mon, 08 Aug 2016 10:01:27 -0700 (PDT)
Original-Received: from mail-qt0-x230.google.com (mail-qt0-x230.google.com. [2607:f8b0:400d:c0d::230])
        by mx.google.com with ESMTPS id o65si17928312qkd.128.2016.08.08.10.01.27
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 08 Aug 2016 10:01:27 -0700 (PDT)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:400d:c0d::230 as permitted sender) client-ip=2607:f8b0:400d:c0d::230;
Original-Received: by mail-qt0-x230.google.com with SMTP id u25so206240786qtb.1
        for <std-proposals@isocpp.org>; Mon, 08 Aug 2016 10:01:27 -0700 (PDT)
X-Received: by 10.237.52.225 with SMTP id x88mr29453337qtd.24.1470675687240;
        Mon, 08 Aug 2016 10:01:27 -0700 (PDT)
Original-Received: from [192.168.1.173] (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id 22sm18032161qtw.21.2016.08.08.10.01.26
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 08 Aug 2016 10:01:26 -0700 (PDT)
In-Reply-To: <CAA7YVg2ogjB+QUxPaeNLWROpdJuc0Gy=EC10eNuA6Rs4NkieAA@mail.gmail.com>
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 mwoehlke.floss@gmail.com designates 2607:f8b0:400d:c0d::230 as permitted
 sender) smtp.mailfrom=mwoehlke.floss@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:27698
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/27698>

On 2016-08-05 06:55, Viacheslav Usov wrote:
> What you are really saying is that you prefer the syntax "using auto
> someObj" over "using this = someObj".
> 
> However, I prefer the latter, and I proposed it after I considered the
> former. Why I prefer the latter:
> 
> 1. It is more general, because it can bind to an expression, not just a
> variable.

To ask the obvious question... if the RHS is an expression, is it
evaluated at the point where the `using` appears, or every time?

-- 
Matthew

-- 
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/57A8BAE6.3090102%40gmail.com.

.
