220 41082 <20181126030900.5181497.67732.66720@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Tony V E <tvaneerd@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: d1193 (Unpublished) - Explicit Return Types
 for (Implicit) Conversions
Date: Sun, 25 Nov 2018 22:09:00 -0500
Lines: 112
Approved: news@gmane.org
Message-ID: <20181126030900.5181497.67732.66720@gmail.com>
References: <331d08dc-54ad-4681-abe8-986b66bf354a@isocpp.org>
 <6d5ed13d-c31a-4218-88b0-e0dd4bef3f72@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1543201618 30150 195.159.176.226 (26 Nov 2018 03:06:58 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 26 Nov 2018 03:06:58 +0000 (UTC)
To: Balog Pal <std-proposals@isocpp.org>, ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUZ5QWKNQIM5R7N34CRUBGXPXIKU@isocpp.org Mon Nov 26 04:06:53 2018
Return-path: <std-proposals+bncBCUZ5QWKNQIM5R7N34CRUBGXPXIKU@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it1-f198.google.com ([209.85.166.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCUZ5QWKNQIM5R7N34CRUBGXPXIKU@isocpp.org>)
	id 1gR7Eb-0007i4-6e
	for gclcip-std-proposals@m.gmane.org; Mon, 26 Nov 2018 04:06:53 +0100
Original-Received: by mail-it1-f198.google.com with SMTP id 66-v6sf21572288itz.9
        for <gclcip-std-proposals@m.gmane.org>; Sun, 25 Nov 2018 19:09:04 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1543201743; cv=pass;
        d=google.com; s=arc-20160816;
        b=RjQa9Re96cqY6zS36neBCbsiOvFQffri8FKiTG/kp6bZhEDx7pQ8SmEcqpwvuzzPXP
         KqnSqCZq8iuQODVFXIRaJVK4s/9j2vY8Fnxbenjt6IRfzEyDQomex6F9X3mBuQWuuKVH
         EHzCUXoOyb78ZL9FzEkwOkRu9/jRLF70mxIwEnUnwXb7g1iuDNwjykaYX+bFXsEJ84GY
         Qjyqt9qCxo6/sHZ6JozARuyw386GM8HX74TgW/NhV9bGnA8+evcbxLlyL5gWbeq4uafU
         nSQBcv6B6NmFzg9wG2A5lvLqRbtHiSmyqLbKcnkn6YK1GydmhjLtuc6+bZWUXWIR/zUy
         HiWQ==
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:to:references:in-reply-to
         :from:subject:date:message-id:content-transfer-encoding:mime-version
         :dkim-signature;
        bh=wc5Sz9fZvg4LRBMSSVF/mzpemFmq8Agxj3qoNREy6eU=;
        b=AG5NQ65dkiMoOVz34HXdxLwrYpNJvxFByPvIWDv3Ph1i63XaOKQjDhSs1WmrpxJb5p
         gbXinKOwEY349qzpr9Hpu5EFIx5LLGI2+BB2f+bccn0rm6MZt8A/UMgNPcu+U/osMJH5
         P3u03M9CIURBMfK7KVUWYmelFBiWXq6nkQmIznj4BfNKi+9ZWpyIeAZIVvXEnrT8QHa0
         vgXXLYS/7Q+npRBgVGjZiboklI4z+/kk1Tyvr1Ft4az6KFlMuCtQ2Raw3aojaEUEkngW
         F5O/vvZw45v7XpLfTWLUltSTnd8A9H8hB+s5ScXRNUnZGdkMe2kPeaA2j81lOXJmf0G8
         ulAA==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=prkOiqAW;
       spf=pass (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tvaneerd@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE 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:content-transfer-encoding:message-id:date:subject:from
         :in-reply-to:references:to: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=wc5Sz9fZvg4LRBMSSVF/mzpemFmq8Agxj3qoNREy6eU=;
        b=EttrlAQciATOOnJ6PqBy7QMwS++226WMSV4heTlVwxk01w48/n9LQS2BreSf7rFpdV
         DM1OxAhL5uVo56SvBOOsuUIxp2UWjlfaeYLGAS1e8ZG8NqVCFiwNzJt90epRWWYGlFau
         W9BHdVROwp8HhPnSWD6tSJZICI4dkw4jatHhL17hwugRuDmdKECJopW64TMcGCNA5mAo
         5RqJ40XjJXZmQKqvhL1kSdEHRK4jwIvj1IcMJf256pRJCFT7LQv3WqgBzFlFyoxsfGW/
         CI8CUO23mraNHLwizBNq5mhHCJmEIDivxVMkU5PzVV6FJJBtJQEJQmzhJ90SKJpp9XyS
         qkZQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:content-transfer-encoding
         :message-id:date:subject:from:in-reply-to:references: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=wc5Sz9fZvg4LRBMSSVF/mzpemFmq8Agxj3qoNREy6eU=;
        b=dxW8q2cBYs4dU36Wk4upn/r9QLtx5mRtgrylRVwW5k5zFaqd21NWK5CYYCYnB78n/6
         EM6v/PjizCsZT9gKIsdcpYjqKlVkvxfok9BgnlF0ii+6ZHezc/BEeto9NbUow0WfT8px
         ieWVTm/nCxUJ6+eINiWjf23IuBaGfi3tvvGSsBWhv0HX3lP2LaWdUn4mWR81XyDOe3FZ
         OuE4tYdXSbzwcWEec6OVVOzpSFmm8IjibCad4b5+4NyyzWjUiw4c8tQncno/fTYUw3zy
         xACoYGkn4DNdaQWObNP6y1LmSfwPEBqTltO94SEWZ1gRWzuvMz6xrfXLs6Dd0KZTtNDD
         u1y 
X-Gm-Message-State: AGRZ1gLF79Oc/SPg/qyD71rCDX9Z1RlTMURsRg0HyAhdbmRYHxa3SBPz
	LvLxir1lXLGh2OvtUEZYh0BrNg==
X-Google-Smtp-Source: AJdET5cRgj/vcFw20zmjQ7aaul59UBjX47lX0VCTVDX84RqNYacrMjtDVfXoWxZ383MJXxxrNab3aw==
X-Received: by 2002:a02:95ae:: with SMTP id b43mr17601548jai.4.1543201743562;
        Sun, 25 Nov 2018 19:09:03 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a6b:f011:: with SMTP id w17ls6293714ioc.6.gmail; Sun, 25 Nov
 2018 19:09:02 -0800 (PST)
X-Received: by 2002:a5d:8145:: with SMTP id f5mr11586966ioo.263.1543201742412;
        Sun, 25 Nov 2018 19:09:02 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1543201742; cv=none;
        d=google.com; s=arc-20160816;
        b=daCz0Veuul+wXYDeDs2Lzrm+nSxZrgCDf+S0hGekERIHtN+2Y4XMbllmO+6fhP+FbA
         Qs7lbbLc8zRpLJp1mL6leBb4fVZ03KM5fo/L5bgJcCJ8DcmQLPsiwG3iIIvIjSrc1QzU
         09nZLk6HusOimzUcLXDpLPQhY2v3xGzHNq0iB5RCXn9YYBZEqHB//kfzGg4tFS+/tn9Z
         BvNeFINGjwoXHS9v+NBnTNEV84navDLgJkAUpkjnYdR4C40xGs9RQriQYQCTtUqxyYjk
         IazxSJaS2xP0FKtu7CzkmuGhzZ+bg5qOudRpBqUYC9rfsHL/M1HEFYj6w1imucKpY5JK
         i+Yg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:references:in-reply-to:from:subject:date:message-id
         :content-transfer-encoding:mime-version:dkim-signature;
        bh=Lw0cNZ4U9lXT+g0UPoQvaLYyzYnWDT98fAT+PCr72Hk=;
        b=Gh+IYgzYZFsDSxVrQmKrsH4xYSkKp7It6O2Xuo3rVK2e5DGWEHyLXtxIqHdAbjYg8D
         oQl2Xy25WyUrpt4aV7dQwdgHnImyjGT/6zpfXD07skV345n1J8esWMHx4gH7+bmG+hgA
         ErfvccAwpiNiEZZDkxBhO+ZlGpCk0SqEreJCpNshPLcNQ8D08HyDKmKlKYTkUOdYk22K
         33Es6jnk+pj6qrhzayHeoPfF+msgrBII5MKV9JsRQzdzwph/F0m0pzvPIdSHFkGkDu5F
         a2IoICzxxUAgIJBFYd9gmlwCaq1SdRkKK34sWUSvaYLONzlczEasjb0kJOjsVK3cifGg
         oEsA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=prkOiqAW;
       spf=pass (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tvaneerd@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id q64sor20059931iod.26.2018.11.25.19.09.02
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Sun, 25 Nov 2018 19:09:02 -0800 (PST)
Received-SPF: pass (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a6b:4905:: with SMTP id u5-v6mr17712977iob.181.1543201741929;
        Sun, 25 Nov 2018 19:09:01 -0800 (PST)
Original-Received: from [127.0.0.1] (glphon2233w-lp140-04-76-68-48-232.dsl.bell.ca. [76.68.48.232])
        by smtp.gmail.com with ESMTPSA id i143-v6sm6168069itb.25.2018.11.25.19.09.00
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sun, 25 Nov 2018 19:09:01 -0800 (PST)
X-Mailer: BlackBerry Email (10.3.3.3216)
In-Reply-To: <6d5ed13d-c31a-4218-88b0-e0dd4bef3f72@isocpp.org>
X-Original-Sender: tvaneerd@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=prkOiqAW;       spf=pass
 (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=tvaneerd@gmail.com;       dmarc=pass (p=NONE
 sp=QUARANTINE 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-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:41082
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/41082>

<html><head></head><body lang=3D"en-US" style=3D"background-color: rgb(255,=
 255, 255); line-height: initial;">                                        =
                                              <div style=3D"width: 100%; fo=
nt-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif=
; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, =
255, 255);">Also:</div><div style=3D"width: 100%; font-size: initial; font-=
family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 12=
5); text-align: initial; background-color: rgb(255, 255, 255);"><br></div><=
div style=3D"width: 100%; font-size: initial; font-family: Calibri, 'Slate =
Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial;=
 background-color: rgb(255, 255, 255);">class X {</div><div style=3D"width:=
 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, s=
ans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: =
rgb(255, 255, 255);">&nbsp; &nbsp;IntProxy operator int ()=E2=80=8E { retur=
n IntProxy{17}; }</div><div style=3D"width: 100%; font-size: initial; font-=
family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 12=
5); text-align: initial; background-color: rgb(255, 255, 255);">};</div><di=
v style=3D"width: 100%; font-size: initial; font-family: Calibri, 'Slate Pr=
o', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; b=
ackground-color: rgb(255, 255, 255);"><br></div><div style=3D"width: 100%; =
font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-ser=
if; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255=
, 255, 255);">X x;</div><div style=3D"width: 100%; font-size: initial; font=
-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 1=
25); text-align: initial; background-color: rgb(255, 255, 255);">int y =3D =
x;</div><div style=3D"width: 100%; font-size: initial; font-family: Calibri=
, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align:=
 initial; background-color: rgb(255, 255, 255);"><br></div><div style=3D"wi=
dth: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-seri=
f, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-col=
or: rgb(255, 255, 255);">I guess that also calls IntProxy -&gt; int, which =
in turn could return AnotherIntProxy=E2=80=8E, ... etc.</div><div style=3D"=
width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-se=
rif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-c=
olor: rgb(255, 255, 255);"><br></div><div style=3D"width: 100%; font-size: =
initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: =
rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255)=
;">Which makes sense, actually. But it means we could any number of convers=
ions, which is novel. Although it is like operator -&gt; I guess.</div><div=
 style=3D"width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro=
', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; ba=
ckground-color: rgb(255, 255, 255);"><br></div>                            =
                                                                           =
                              <div style=3D"width: 100%; font-size: initial=
; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31,=
 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br =
style=3D"display:initial"></div>                                           =
                                                                           =
                                                                           =
  <div style=3D"font-size: initial; font-family: Calibri, 'Slate Pro', sans=
-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; backgroun=
d-color: rgb(255, 255, 255);">Sent&nbsp;from&nbsp;my&nbsp;BlackBerry&nbsp;p=
ortable&nbsp;Babbage&nbsp;Device</div>                                     =
                                                                           =
                                                                  <table wi=
dth=3D"100%" style=3D"background-color:white;border-spacing:0px;"> <tbody><=
tr><td colspan=3D"2" style=3D"font-size: initial; text-align: initial; back=
ground-color: rgb(255, 255, 255);">                           <div style=3D=
"border-style: solid none none; border-top-color: rgb(181, 196, 223); borde=
r-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans=
', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Balog Pal</div><div><=
b>Sent: </b>Sunday, November 25, 2018 7:57 PM</div><div><b>To: </b>ISO C++ =
Standard - Future Proposals</div><div><b>Reply To: </b>std-proposals@isocpp=
..org</div><div><b>Subject: </b>[std-proposals] Re: d1193 (Unpublished) - Ex=
plicit Return Types for (Implicit) Conversions</div></div></td></tr></tbody=
></table><div style=3D"border-style: solid none none; border-top-color: rgb=
(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: ini=
tial; background-color: rgb(255, 255, 255);"></div><br><div id=3D"_original=
Content" style=3D""><div dir=3D"ltr"><div>Yes, provide examples of actual u=
se and some problem case that it actually solves.</div><div><br></div><div>=
The example you did write is more than confusing to think about. That opera=
tor triggers where context wants int and I provided S. So then what happens=
: operator int is invoked, it returns a double that is in turn converted to=
 int. Wow. Why that there and back conversion is good?</div><div><br></div>=
<div>If the intent is to return some int_proxy instance, that has an operat=
or int itself, then it might make sense, but it is 2 user-defined conversio=
ns that would not work with current rules, how you intend to cover that wit=
hout impact on existing code?<br></div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" 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/6d5ed13d-c31a-4218-88b0-e0dd4bef3f72%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter">https://groups.goo=
gle.com/a/isocpp.org/d/msgid/std-proposals/6d5ed13d-c31a-4218-88b0-e0dd4bef=
3f72%40isocpp.org</a>.<br>
<br><!--end of _originalContent --></div></body></html>

<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/20181126030900.5181497.67732.66720%40=
gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com=
/a/isocpp.org/d/msgid/std-proposals/20181126030900.5181497.67732.66720%40gm=
ail.com</a>.<br />

.
