220 27295 <0c6cb819-86d9-403f-8316-b303743b1814@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: FrankHB1989 <frankhb1989@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Generalized "using" member aliases.
Date: Tue, 26 Jul 2016 18:56:38 -0700 (PDT)
Lines: 109
Approved: news@gmane.org
Message-ID: <0c6cb819-86d9-403f-8316-b303743b1814@isocpp.org>
References: <d0eb7c1b-19b5-4ab4-97c3-e3f1a88a7fe3@isocpp.org>
 <ea7b738a-ec82-46ba-8903-e1097b9d9e39@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1794_252960846.1469584598580"
X-Trace: ger.gmane.org 1469584602 13487 80.91.229.3 (27 Jul 2016 01:56:42 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 27 Jul 2016 01:56:42 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCTJVBPG3QIBBV5J4C6AKGQEXWODODA@isocpp.org Wed Jul 27 03:56:41 2016
Return-path: <std-proposals+bncBCTJVBPG3QIBBV5J4C6AKGQEXWODODA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-io0-f197.google.com ([209.85.223.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCTJVBPG3QIBBV5J4C6AKGQEXWODODA@isocpp.org>)
	id 1bSE5R-00085G-2d
	for gclcip-std-proposals@m.gmane.org; Wed, 27 Jul 2016 03:56:41 +0200
Original-Received: by mail-io0-f197.google.com with SMTP id g14sf21661546ioj.3
        for <gclcip-std-proposals@m.gmane.org>; Tue, 26 Jul 2016 18:56:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to: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=PZJxPCEOtqFbe4w4nNPwynyfOUL2XUm7XaAj9Wsg2/M=;
        b=SopywYKvX9G5Zm0pURuEvCUj5SQQvmekSB0Kp1yri2olK0iblxI5b6igXaeQuB5xc/
         sMR97MSc7WQii0VHreQ7U+1175eSEU+V5FrXSCXnPI4V40iGPqsh8r8uMXGyrAuwTZ6V
         fZlkEg37uXTOHqlubbhcXAj6XUNxC5qyeUMPG0zG0t2J44ZGkoUdd2gXR86TmSXOExrF
         hHTACwChLKyHztATlWvGaUKvUMhlDPCpJuyxQdNWfFXdR33hocx2A4RJf9oRWcc3mc4c
         HM+hGVO4CPvEIJRXUi1mUlvuIQNUVpJcZ8e86Klsd5AiblzaI8W5DzVjh8hkuLDIxotF
         DaGg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to: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=PZJxPCEOtqFbe4w4nNPwynyfOUL2XUm7XaAj9Wsg2/M=;
        b=yPchCz6KY4SxhjU9VMLgkufjecKyCmCWXu6zP40J1LauPtonkd64Y38GNQwHrzJerD
         vxPUfDkcgWG4YbSQKRsIvGA4BFuQVxMJW9ZglUoWNcm6QhfpgXwmAi9s2+3fmzXnr3VW
         JbxIcMhk28xDWwzOi3cjIN2uf3Wjnjn2LKRY+ULwLmJRil6P2j0oQUt7TG1LVBz3DWbJ
         UL60xiT+H3FBfIQpAgVsMI8s0IV1KNXeUXlZREDA3yHVqVhoidBklYdLBJSSp3qnZ/Tn
         6h8Sc+GB7yHbiEjVwZkEFXakbj8TOJaIfE3MrIz1K/MUzVOLJcq5uO0HM+PulCWAzNsj
         /IZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to: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=PZJxPCEOtqFbe4w4nNPwynyfOUL2XUm7XaAj9Wsg2/M=;
        b=k/CXXyXdyl7OTQ1T7LBHa6xzIMtFaaeyABYNov1PCKulsRjBHwou4ZYSOljnV+WZmy
         9J0nVfCB0mUsPwSZ0vDxIFaNf31uKS+0h9r0zoacCvW2Bl1c61ZCjqa9c8a3mfKVoC+y
         IbSLAXL76q4FYBWKlbUx1SjIKGIKJQEGslzB+XZXrj3FQ8cmAFqehw7/nxdGkxjTvc+T
         A9c8iWwdTx49T+epcMMdJ/z72NP8M7Bs9CJcbdTXb/bbnZ3Jr11IGH6iR46qvQZySuFW
         RjVdLv6Lk8HmcYUo/gI5EAn+T1QwppghyyxOOccbcO8NyOM6ZZItTHNGp2KI9dToGjHk
         /N5w==
X-Gm-Message-State: AEkooutKgw3PE4ZzPNcyVwfE7ZArysinQOL2vtmQoZzcbgM6ReXzsbBmikUsAQ1fIw+ROQ==
X-Received: by 10.157.41.240 with SMTP id g45mr23205308otd.30.1469584600025;
        Tue, 26 Jul 2016 18:56:40 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.20.1 with SMTP id h1ls374300oth.44.gmail; Tue, 26 Jul 2016
 18:56:39 -0700 (PDT)
X-Received: by 10.157.56.205 with SMTP id k13mr1454646ote.10.1469584599108;
        Tue, 26 Jul 2016 18:56:39 -0700 (PDT)
In-Reply-To: <ea7b738a-ec82-46ba-8903-e1097b9d9e39@isocpp.org>
X-Original-Sender: frankhb1989@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:27295
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/27295>

------=_Part_1794_252960846.1469584598580
Content-Type: multipart/alternative; 
	boundary="----=_Part_1795_1915210899.1469584598580"

------=_Part_1795_1915210899.1469584598580
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable



=E5=9C=A8 2016=E5=B9=B47=E6=9C=8823=E6=97=A5=E6=98=9F=E6=9C=9F=E5=85=AD UTC=
+8=E4=B8=8A=E5=8D=881:58:55=EF=BC=8CGreg Marr=E5=86=99=E9=81=93=EF=BC=9A
>
> On Thursday, July 21, 2016 at 10:23:07 PM UTC-4, Derek Ross wrote:
>>
>> It would be useful if "using" aliases could be expanded beyond namespace=
s=20
>> and types. Why not provide aliases for class members? This would be usef=
ul=20
>> if you wanted to derive a class from a standard type such as pair or tup=
le,=20
>> but wanted more meaningful member names than the built-in .first, .secon=
d,=20
>> etc, names. In effect, a way to easily "rename" a member.
>>
>
> There was a discussion of this here back in December.
>
>
> https://groups.google.com/a/isocpp.org/forum/#!topic/std-proposals/4PR7LU=
ngZFw
>
> https://groups.google.com/a/isocpp.org/forum/#!topic/std-proposals/KMI1F_=
0k55s
>
> The discussion seemed to be inactive for a long time.

I actually prefer the broader idea: to allow users specifying a name in *an=
y=20
*scope bounds to some entity, rather than only in some class scope. This=20
also eliminates some need of macros.


--=20
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 e=
mail 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/0c6cb819-86d9-403f-8316-b303743b1814%40isocpp.or=
g.

------=_Part_1795_1915210899.1469584598580
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>=E5=9C=A8 2016=E5=B9=B47=E6=9C=8823=E6=97=A5=E6=98=
=9F=E6=9C=9F=E5=85=AD UTC+8=E4=B8=8A=E5=8D=881:58:55=EF=BC=8CGreg Marr=E5=
=86=99=E9=81=93=EF=BC=9A<blockquote class=3D"gmail_quote" style=3D"margin: =
0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div d=
ir=3D"ltr">On Thursday, July 21, 2016 at 10:23:07 PM UTC-4, Derek Ross wrot=
e:<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;bor=
der-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">It would be usef=
ul if &quot;using&quot; aliases could be expanded beyond namespaces and typ=
es. Why not provide aliases for class members? This would be useful if you =
wanted to derive a class from a standard type such as pair or tuple, but wa=
nted more meaningful member names than the built-in .first, .second, etc, n=
ames. In effect, a way to easily &quot;rename&quot; a member.<br></div></bl=
ockquote><div><br></div><div>There was a discussion of this here back in De=
cember.</div><div><br></div><div><a href=3D"https://groups.google.com/a/iso=
cpp.org/forum/#!topic/std-proposals/4PR7LUngZFw" target=3D"_blank" rel=3D"n=
ofollow" onmousedown=3D"this.href=3D&#39;https://groups.google.com/a/isocpp=
..org/forum/#!topic/std-proposals/4PR7LUngZFw&#39;;return true;" onclick=3D"=
this.href=3D&#39;https://groups.google.com/a/isocpp.org/forum/#!topic/std-p=
roposals/4PR7LUngZFw&#39;;return true;">https://groups.google.com/a/<wbr>is=
ocpp.org/forum/#!topic/std-<wbr>proposals/4PR7LUngZFw</a><br></div><div><a =
href=3D"https://groups.google.com/a/isocpp.org/forum/#!topic/std-proposals/=
KMI1F_0k55s" target=3D"_blank" rel=3D"nofollow" onmousedown=3D"this.href=3D=
&#39;https://groups.google.com/a/isocpp.org/forum/#!topic/std-proposals/KMI=
1F_0k55s&#39;;return true;" onclick=3D"this.href=3D&#39;https://groups.goog=
le.com/a/isocpp.org/forum/#!topic/std-proposals/KMI1F_0k55s&#39;;return tru=
e;">https://groups.google.com/a/<wbr>isocpp.org/forum/#!topic/std-<wbr>prop=
osals/KMI1F_0k55s</a><br></div><div><br></div></div></blockquote><div>The d=
iscussion seemed to be inactive for a long time.<br><br>I actually prefer t=
he broader idea: to allow users specifying a name in <i>any </i>scope bound=
s to some entity, rather than only in some class scope. This also eliminate=
s some need of macros.<br><br><br></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/0c6cb819-86d9-403f-8316-b303743b1814%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/0c6cb819-86d9-403f-8316-b303743b1814=
%40isocpp.org</a>.<br />

------=_Part_1795_1915210899.1469584598580--

------=_Part_1794_252960846.1469584598580--

.
