220 2299 <f0c3cd2a-f285-4a36-b33f-3a7ddcb5ba89@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: =?UTF-8?Q?R=C3=B3bert_D=C3=A1vid?= <lrdxgm@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: optional<T>, one more value or two states
Date: Sat, 26 Jan 2013 04:44:25 -0800 (PST)
Lines: 69
Approved: news@gmane.org
Message-ID: <f0c3cd2a-f285-4a36-b33f-3a7ddcb5ba89@isocpp.org>
References: <CAGsORuC1ADLXgS9AZZiTo=knmhT-+9Yj+82v+b8Nq_WJpb1fOg@mail.gmail.com>
 <CAFk2RUZyZA0LLUNuVNcnibv+qBF69jMytWQL3tkp-Kp21oEU+A@mail.gmail.com>
 <CAGsORuB-Qkx-LaXj2jO4yLrwN524kiJONSg7oczkQZHYaJ6ASg@mail.gmail.com>
 <d360a952-28ae-4d57-bb20-96fd08725a0b@isocpp.org>
 <CAPXezF_JggyMaXjGS9r1EAGVu1NhQBEyGEXB8tKmVqgFfjoCeg@mail.gmail.com>
 <CALJmx62zJd_tZ=XYL7TaSkRN6432SObwH9YS87eLX-h_pMuFYQ@mail.gmail.com>
 <CAOHCbivAK0ypmMhrhJ3zKpF8BHu3h_rUNzeao-HnibJkC-qqGw@mail.gmail.com>
 <ef15483d-5665-4da3-9b79-aefd3c725e1b@isocpp.org>
 <CAOHCbithEUfm+w_06V71=hpkqGUJvqiyDFqD7fesfgLy4uUieg@mail.gmail.com>
 <2c2b9360-8e5e-422d-9b85-124bd947b004@isocpp.org>
 <CAOHCbivJzdQbe22URgRuahCYYDPG8Ygsc4VG7f61zRBWXogekg@mail.gmail.com>
 <4f505b21-669a-4ef0-95b9-edf9e5afa22d@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_826_8549850.1359204265818"
X-Trace: ger.gmane.org 1359204267 26702 80.91.229.3 (26 Jan 2013 12:44:27 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 26 Jan 2013 12:44:27 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDMKHJ4B6MARBKU7R6EAKGQEHFBLPLQ@isocpp.org Sat Jan 26 13:44:47 2013
Return-path: <std-proposals+bncBDMKHJ4B6MARBKU7R6EAKGQEHFBLPLQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qe0-f72.google.com ([209.85.128.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDMKHJ4B6MARBKU7R6EAKGQEHFBLPLQ@isocpp.org>)
	id 1Tz57m-0002tL-4M
	for gclcip-std-proposals@m.gmane.org; Sat, 26 Jan 2013 13:44:46 +0100
Original-Received: by mail-qe0-f72.google.com with SMTP id a11sf999341qen.7
        for <gclcip-std-proposals@m.gmane.org>; Sat, 26 Jan 2013 04:44:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-received:x-beenthere:x-received:date:from:to:message-id
         :in-reply-to:references:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:x-google-group-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=WLqmsacsicDJ/flTqPFjkuSlsWkkFpJK0TG2h3Hp3wM=;
        b=koW9GAjyA3u/owuG8tViv8S2d6omapU2QSpieCU49Od6d0cNG9ByXaXnY1ab0jryNE
         PGYHTYQ8wzveO6NxvS8j5uc21qhO/K7GafyT37EES6Rj/1Ae9moM/X+xcIQvlWaVH1ZZ
         kitUIjlX5VzJJEk3RAEYqHtLZ5r+KjzW1Bx9ydish6j5kz6yOW52sZv4D33X1VY9NRJh
         cV8oHt2uJbOyEt2RT31BS0wL9/xlWc9cQ+YlUcyqvcjrIq0pmZ6lAAaGQO/LiDNC4B9P
         aol6F74Z3GJlPSPlgsxnGiP8+ENwZuOJwi/xcdRM3o7EdCAbZReIfcq3qXqU2UvyVuWW
         Lkcw==
X-Received: by 10.224.189.78 with SMTP id dd14mr4492894qab.0.1359204267307;
        Sat, 26 Jan 2013 04:44:27 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.1.5 with SMTP id 5ls552660qei.18.gmail; Sat, 26 Jan 2013
 04:44:26 -0800 (PST)
X-Received: by 10.49.116.115 with SMTP id jv19mr1824859qeb.21.1359204266100;
        Sat, 26 Jan 2013 04:44:26 -0800 (PST)
In-Reply-To: <4f505b21-669a-4ef0-95b9-edf9e5afa22d@isocpp.org>
X-Original-Sender: lrdxgm@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:2299
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/2299>

------=_Part_826_8549850.1359204265818
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: quoted-printable



2013. janu=E1r 26., szombat 0:22:11 UTC+1 id=F5pontban Nicol Bolas a k=F6ve=
tkez=F5t=20
=EDrta:
>
> Yes: `optional<T*>` exists. Such an object has 3 possible states: the=20
> optional could be empty. The optional could contain a valid pointer. Or t=
he=20
> optional could contain *nullptr*.
>
>
I'd argue that this is still two state: empty, or a valid pointer. nullptr =
*is=20
*a valid pointer value, or to be more exact, T*(nullptr) is.

Regards, Robert

--=20

---=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To post to this group, send email to std-proposals@isocpp.org.
To unsubscribe from this group, send email to std-proposals+unsubscribe@iso=
cpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/?hl=3Den.



------=_Part_826_8549850.1359204265818
Content-Type: text/html; charset=ISO-8859-2
Content-Transfer-Encoding: quoted-printable

<br><br>2013. janu=E1r 26., szombat 0:22:11 UTC+1 id=F5pontban Nicol Bolas =
a k=F6vetkez=F5t =EDrta:<blockquote class=3D"gmail_quote" style=3D"margin: =
0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Yes: `=
optional&lt;T*&gt;` exists. Such an object has 3 possible states: the optio=
nal could be empty. The optional could contain a valid pointer. Or the opti=
onal could contain <i>nullptr</i>.<br><div><br></div></blockquote><div><br>=
I'd argue that this is still two state: empty, or a valid pointer. <span st=
yle=3D"font-family: courier new,monospace;">nullptr</span> <b><i>is </i></b=
>a valid pointer value, or to be more exact, <span style=3D"font-family: co=
urier new,monospace;">T*(nullptr)</span> is.<br><br>Regards, Robert<br></di=
v>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
To unsubscribe from this group, send email to std-proposals+unsubscribe@iso=
cpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_826_8549850.1359204265818--

.
