220 19748 <mqaael$72u$1@ger.gmane.org> article
Path: news.gmane.org!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: *** GMX Spamverdacht *** Re: Allow values of void
Date: Mon, 10 Aug 2015 09:54:29 -0400
Lines: 44
Approved: news@gmane.org
Message-ID: <mqaael$72u$1@ger.gmane.org>
References: <4159b2c4-c03b-4086-9f71-fd5f78a4175c@isocpp.org>	<0c973057-a1f2-485d-b8f4-8e0a7a641221@isocpp.org>	<CALOpkJALw+RnaaifaHmg1VZ_zfgPfO=Y4FzKznPqhOWoYp=f9Q@mail.gmail.com>	<1549494.1QHixDtzqm@tjmaciei-mobl4>	<CALOpkJDkv3XTeksAn93LgsUM1YYdYuQ9Rv7LoXZERtCmnm_E7w@mail.gmail.com>	<6b885185-4217-40b4-a8cf-aa3591a655d4@isocpp.org>	<CANh8DEkpGqxeWP2J5r1pgvVw6jBGm1dsNpmBM_78fnWKpJeKxg@mail.gmail.com>	<mpt4hr$49s$1@ger.gmane.org> <CANh8DEmQ0=u2RZXanEh_EX8ehncLm385=n3FWZzfCh9v5+kmSA@mail.gmail.com> <mptpdg$o6a$1@ger.gmane.org> <55C542D7.5090500@gmx.de>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1439214889 7826 80.91.229.3 (10 Aug 2015 13:54:49 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 10 Aug 2015 13:54:49 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBBHW2UKXAKGQE6JLZBUQ@isocpp.org Mon Aug 10 15:54:40 2015
Return-path: <std-proposals+bncBC37LBFWUIFBBHW2UKXAKGQE6JLZBUQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f199.google.com ([209.85.212.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBHW2UKXAKGQE6JLZBUQ@isocpp.org>)
	id 1ZOnXD-0003Dd-RA
	for gclcip-std-proposals@m.gmane.org; Mon, 10 Aug 2015 15:54:39 +0200
Original-Received: by wilj18 with SMTP id j18sf38734870wil.0
        for <gclcip-std-proposals@m.gmane.org>; Mon, 10 Aug 2015 06:54:39 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:content-type:user-agent: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=idZPm1Y/DfldmmLjyPAQGNJo+PYFekbJb7JSwL3+NkM=;
        b=GFaPwOMjBvRQ5ktbXwVritXSr//78ZJHig2Nsx6tbo3ZOzPcD//23hYIgfNepN8S9W
         xf958Qdu9gBgWYuBE9hluhRzTf25V/BiH//XD5GpcSdpqxx+hZPmq7PH9xuD+FGMaCVX
         tociS49+TAAwHlcSz1qFn/DNoTcr9KE2qIsEGd2aF2ggdihU85u/+KzTyzWxBDUacFNc
         /4YPfSHba8fn3yfEKce0INQQ5XV5FJ8cFJXBlL2EKlhWdt684fHgvw/t1woY3X3Om2q6
         MwNf+51IZ1cy7ZwIFHKTU+3OCnIj4WMS3qwf/4NV8lsZcvqjuF0dxll2s/B5esLje87o
         
X-Gm-Message-State: ALoCoQknUjcFVcCaORbZIi+xj9D6iMWc5MRhV2qkXzT7ZYBhSm87CqoID0F+4XLYAB/2D3PnrIsJ
X-Received: by 10.112.139.65 with SMTP id qw1mr6386042lbb.24.1439214879071;
        Mon, 10 Aug 2015 06:54:39 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.21.3 with SMTP id r3ls818877lae.89.gmail; Mon, 10 Aug 2015
 06:54:37 -0700 (PDT)
X-Received: by 10.112.89.201 with SMTP id bq9mr19902437lbb.39.1439214877788;
        Mon, 10 Aug 2015 06:54:37 -0700 (PDT)
Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3])
        by mx.google.com with ESMTPS id j9si14098493lam.16.2015.08.10.06.54.37
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Mon, 10 Aug 2015 06:54:37 -0700 (PDT)
Received-SPF: pass (google.com: domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as permitted sender) client-ip=80.91.229.3;
Original-Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1ZOnX9-0003By-6n
	for std-proposals@isocpp.org; Mon, 10 Aug 2015 15:54:35 +0200
Original-Received: from tripoint.kitware.com ([66.194.253.20])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Mon, 10 Aug 2015 15:54:35 +0200
Original-Received: from mwoehlke.floss by tripoint.kitware.com with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Mon, 10 Aug 2015 15:54:35 +0200
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 35
Original-X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: tripoint.kitware.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
In-Reply-To: <55C542D7.5090500@gmx.de>
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as
 permitted sender) smtp.mail=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (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-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:19748
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/19748>

On 2015-08-07 19:44, Martin Molzer wrote:
>> *RIGHT NOW*, 'void' is used to indicate the absence of a value - i.e.
>> Basically, a void value is just ignored
> 
> You are contradicting yourself here, an absent value can't be ignored, it's
> just not there.

Fine; "value" in the second sentence should have been in quotes.

As in:

  void bar();
  void foo()
  {
    return bar(); // the "value" here is ignored
  }

> The only special rule we'd have to further analyse is that when a
> void method doesn't return, void is returned implicitly.

Not really; this code is already legal:

  int foo()
  {
  }

(Results in UB, maybe, but legal. Which is absurd, if you ask me, but...)

So there is no "need" for such a special rule unless we fix that
non-void functions aren't required to explicitly return either. Anyway,
since the void case does not produce a meaningful value, the UB is
irrelevant for that case.

-- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
