220 19956 <c817b9fc-7a99-44ec-96a0-97379d0f17a7@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: NDos Dannyu <ndospark320@naver.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Address of a reference: determining the value
 category of what it refers?
Date: Fri, 21 Aug 2015 19:42:13 -0700 (PDT)
Lines: 125
Approved: news@gmane.org
Message-ID: <c817b9fc-7a99-44ec-96a0-97379d0f17a7@isocpp.org>
References: <76fe342f-3342-4355-af20-1c41b21e54aa@isocpp.org> <CAOfiQqnohbBZt9OguvL8Tg=9cDPzEzTPC_hAkdErM9T_mnH6vw@mail.gmail.com> <d48969a2-f27a-4c82-869e-6a848c9f1422@isocpp.org>
 <3183929.eXnTES4BH3@tjmaciei-mobl4>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_53_1393151064.1440211333630"
X-Trace: ger.gmane.org 1440211337 10231 80.91.229.3 (22 Aug 2015 02:42:17 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 22 Aug 2015 02:42:17 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCX7FRO67EHRBB6D36XAKGQEC3PU7XY@isocpp.org Sat Aug 22 04:42:17 2015
Return-path: <std-proposals+bncBCX7FRO67EHRBB6D36XAKGQEC3PU7XY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f199.google.com ([209.85.220.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCX7FRO67EHRBB6D36XAKGQEC3PU7XY@isocpp.org>)
	id 1ZSyl6-000257-JF
	for gclcip-std-proposals@m.gmane.org; Sat, 22 Aug 2015 04:42:16 +0200
Original-Received: by qkep139 with SMTP id p139sf114817716qke.1
        for <gclcip-std-proposals@m.gmane.org>; Fri, 21 Aug 2015 19:42:15 -0700 (PDT)
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:content-type: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=GmnQ59hcr3T2Iuj0AnDZwPBMuvTWd4ul6afiFATYlHc=;
        b=FLor6i6+z5i50IldsgiQJLpHKC3xTX8LOtdnaytW3FdGoIXdjaeCi/ZcN81+foXZ1a
         HnY5gh3CQSXBFzD3iOn4iSABxsfLiHO2Fh/dGfSGVvN29SZCF8yUyb9S4vAMPzvCX0/6
         +IA68a9LLqzrMVdSfHIrKyO5ePWhzfXMYVdmRgxEtzLhuz8Jqx1dVVCy26ayZhW1YrnZ
         hK+1VklaWsvHLMvCyZ3ybaDNeRz/2br2VK6R28TJy3nrFrMRrmmlAYPYSS3YBG2Ir67Z
         YO2wDLuuIqkmCYumierx0Y6xJjbdUQqKOnIH+jHbcsz6eBBhysYGipBghVPn3cQpKj3J
         6wUQ==
X-Gm-Message-State: ALoCoQmzKaYQKSPhfW7GgnocwZLD6JWn1HiFqFu9WhSu9F6tdl3nrg4dvydh0qCtMgrIPZdcQuyR
X-Received: by 10.140.150.14 with SMTP id 14mr9402334qhw.0.1440211335813;
        Fri, 21 Aug 2015 19:42:15 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.108.7 with SMTP id hg7ls664605igb.37.gmail; Fri, 21 Aug
 2015 19:42:15 -0700 (PDT)
X-Received: by 10.50.119.102 with SMTP id kt6mr117420igb.13.1440211334971;
        Fri, 21 Aug 2015 19:42:14 -0700 (PDT)
In-Reply-To: <3183929.eXnTES4BH3@tjmaciei-mobl4>
X-Original-Sender: ndospark320@naver.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: <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:19956
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/19956>

------=_Part_53_1393151064.1440211333630
Content-Type: multipart/alternative; 
	boundary="----=_Part_54_312722975.1440211333637"

------=_Part_54_312722975.1440211333637
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable



2015=EB=85=84 8=EC=9B=94 22=EC=9D=BC =ED=86=A0=EC=9A=94=EC=9D=BC =EC=98=A4=
=EC=A0=84 11=EC=8B=9C 24=EB=B6=84 55=EC=B4=88 UTC+9, Thiago Macieira =EB=8B=
=98=EC=9D=98 =EB=A7=90:
>
>
> You're saying that the function doit above should return null if it was=
=20
> called=20
> with a reference to a temporary. But if it does so, how will it print the=
=20
> value that was referenced?=20
>
Does printf need its address??=20

> Besides, we're missing an important aspect: why do you want this? What's=
=20
> the=20
> motivation?=20
>
I'm writing my story again:

I have a value class indicating a finite discrete random variable.
But I had a problem. For example, assume that I have a variable named X.
But how can P(X<X=C2=B2) interpreted? X is still X, even it is squared, isn=
't it?
Things will get much more complicated if I have multiple variables, X, Y=20
and Z,
and I have to do like P(X<X=C2=B2=3DY>|Z|) or something.=20
So I decided to make a bind of variables.
It would be a tree structure, consisting of other binds or variables.
If it consists of references of variables, it will know what variables are=
=20
same(or dependant) and what variables are different(or indepentant).
But how can I deal with rvalues? For examples, 1 can be seen as a variable=
=20
which is always 1.
But it has no name. It is just 1. It is always indepentant from=20
other variables.
So I made it to consist of const lvalue references,=20
which can initialized with lvalue or rvalue.
But how can I determine it refers to lvalue or rvalue?? I couldn't find any=
=20
solution from the standard library.

--=20

---=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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

------=_Part_54_312722975.1440211333637
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>2015=EB=85=84 8=EC=9B=94 22=EC=9D=BC =ED=86=A0=EC=
=9A=94=EC=9D=BC =EC=98=A4=EC=A0=84 11=EC=8B=9C 24=EB=B6=84 55=EC=B4=88 UTC+=
9, Thiago Macieira =EB=8B=98=EC=9D=98 =EB=A7=90:<blockquote class=3D"gmail_=
quote" style=3D"margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-c=
olor: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;=
"><br>You&#39;re saying that the function doit above should return null if =
it was called=20
<br>with a reference to a temporary. But if it does so, how will it print t=
he=20
<br>value that was referenced?
<br></blockquote><div>Does=C2=A0printf need its address??=C2=A0</div><block=
quote class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; padding-lef=
t: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; bord=
er-left-style: solid;">Besides, we&#39;re missing an important aspect: why =
do you want this? What&#39;s the=20
<br>motivation?
<br></blockquote><div>I&#39;m writing my story again:</div><div><blockquote=
 style=3D"margin-right: 0px;" dir=3D"ltr"><div><font color=3D"#000000">I ha=
ve a value class indicating a finite discrete random variable.</font></div>=
<div>But I had a problem. For example, assume that=C2=A0I have a variable n=
amed X.</div><div>But=C2=A0how=C2=A0can=C2=A0P(X&lt;X=C2=B2) interpreted? X=
 is still X, even it is squared, isn&#39;t it?</div><div>Things will get mu=
ch more complicated if=C2=A0I have multiple variables, X, Y and Z,</div><di=
v>and I have to do like P(X&lt;X=C2=B2=3DY&gt;|Z|) or something.=C2=A0</div=
><div>So I decided to=C2=A0make a bind of variables.</div><div>It would be =
a tree structure, consisting of=C2=A0other=C2=A0binds=C2=A0or variables.</d=
iv><div>If=C2=A0it=C2=A0consists=C2=A0of references of variables, it will k=
now what variables are same(or dependant) and=C2=A0what variables are diffe=
rent(or indepentant).</div><div>But=C2=A0how can I deal with rvalues?=C2=A0=
For examples, 1 can be seen as a variable which is always 1.</div><div>But =
it has=C2=A0no name. It is just 1. It=C2=A0is always indepentant from other=
=C2=A0variables.</div><div>So I=C2=A0made it=C2=A0to consist of const lvalu=
e references, which=C2=A0can=C2=A0initialized=C2=A0with lvalue or rvalue.</=
div><div>But=C2=A0how can I determine it=C2=A0refers to lvalue or rvalue?? =
I couldn&#39;t find any solution from the standard library.</div></blockquo=
te></div></div>

<p></p>

-- <br />
<br />
--- <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 />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_54_312722975.1440211333637--
------=_Part_53_1393151064.1440211333630--

.
