220 32576 <1996408.ZYmak0RsWz@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: relaxing rules for ternary operator. Allow
 incompatible types.
Date: Mon, 22 May 2017 08:19:04 -0700
Lines: 28
Approved: news@gmane.org
Message-ID: <1996408.ZYmak0RsWz@tjmaciei-mobl1>
References: <1b5ee8eb-53df-4e98-af2f-829c7bc2e5b2@isocpp.org> <d14bfe0d-8c72-49a0-bf08-8041998dd125@isocpp.org> <a61766a4-0b37-44b0-91eb-0f6f697dae00@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1495466349 32055 195.159.176.226 (22 May 2017 15:19:09 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 22 May 2017 15:19:09 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRB3ECRTEQKGQEQNQS4XI@isocpp.org Mon May 22 17:19:04 2017
Return-path: <std-proposals+bncBCB4TK757YBRB3ECRTEQKGQEQNQS4XI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pf0-f198.google.com ([209.85.192.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRB3ECRTEQKGQEQNQS4XI@isocpp.org>)
	id 1dCp6t-0008Ag-P9
	for gclcip-std-proposals@m.gmane.org; Mon, 22 May 2017 17:19:03 +0200
Original-Received: by mail-pf0-f198.google.com with SMTP id j28sf131479917pfk.14
        for <gclcip-std-proposals@m.gmane.org>; Mon, 22 May 2017 08:19:09 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1495466349; cv=pass;
        d=google.com; s=arc-20160816;
        b=i9CtCXYnBNxpB1AxLXIuEqLkNwqtpksv27oypkMWfns2evqtgGBJRyFmqaP61lgxFi
         dw5Ap+KBz/Y3we2w6HX3grxLeZcvCnkWEORAmiwJvpOd8Ha1ny5LRZXsqqO8/q6Eph0f
         Bw2YwrWBwzNYvAacmj/bbcyoqjewOc7BLdkOynlPkvqt3XXWTTTlcrRPC2e6BAR/6zB7
         zdv7YibqJtacMUROaRkRJq6mdqIs1zAX34ezQUzLqRBEp8XWbY5aq1Z11TdDY5bTKGWG
         kpgGUTRGf/i7Wo9WYP9ISJ1KVr5BgerpoQZj3YDmWeHqy+HkoFuijg7TaNbASYU/l81U
         AjAw==
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:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=z28HuA7CKbj9YTkO1xNz9rez7bEZ+CMC6qxY15lmt8E=;
        b=qXCuCzzL7W+wd0htJX3dLHwcGLPUFZTaIEfr8L0vxD8mJHilRmD54bEkF9ScJapog1
         e8i4fijmfGTL2avQJJRyhF+ZqLx2DYwhol2gUkn7NurSMfs0iKdDvAwgUvuiULkQZqwR
         7lRkQp2vVXoXHQXQ1BYxZggL7rJKS06vCOOgoEe+1PswkvhgqCzD8yfUfBWtcdJ5s1jW
         qD4Z/qzhefOpFGXk9D3Qu9hhHHWvEzCM2Cstbh73gG6NgFCzkoA/Z/AjlV+PJjg7rHAp
         N18E+EyfbWPnm/8ZfHkKsntmYoTdMCaD6CE2mBnDsa4oCjWDNVjy483lOtYUwctkleaX
         K1IQ==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :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=z28HuA7CKbj9YTkO1xNz9rez7bEZ+CMC6qxY15lmt8E=;
        b=OWM1TNmKNSDpsioNeiLJ6IWoCzCxc+HLJqKwcwXZMsf6XcEpaQmuuwiUiA8eTGJhbb
         uMiH437UHpiBLxYWxJBKlYOJoQW87olK1Y2bAQ4shJZa0HDX+ObQj7QAcrO2Vu2GAYD5
         t1WFAfJE2wmSDxHEjf0iBr4sqeHOLcB/f5edv6mIMmc1w+db9DdlxMAnvKlQMTsZdY3G
         CkjybgxYq7jTv+fAxWlXzPxG1ha2wWHDrhgeHvunuZfM66SQK//3Q3H8LzUGgX8K8Vya
         2+Yol8xs4DaVoeqMRagh/zWXXJSBHBS8Jm26qAl2r/V6Q2ddhDgbv4Navwan0fnPYYeG
         VOBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version: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=z28HuA7CKbj9YTkO1xNz9rez7bEZ+CMC6qxY15lmt8E=;
        b=YY3H1JMCxtmSZV6RnYF08X5D2HZDlEwDVqAzOUBtkkrOdsr8Fp0+oxADLdjkW9sm7k
         rMA7qkXxOhr9s0zUiYsfVlaTKcLjy1hvWNVaIMvNvF7nfIhNMo1xc+TFawFU5a7pl0VE
         7ArrST/6GUBUxR/hEB8jNHUcBIHshoZRoaWk82LgDhmoHw0oAj6NSEZ1u5UQJ0qu1mfC
         aNi1vBMt9mtiVbRmaaY0mRnABu6/ham/w3r5JCrH3awqw8pjapOJ5M8YV1lfcUiMiySD
         ttos+cn/djZKAAiPBc+rXDOTIRLOwVOyAu3fum6vrFVb8yOOZ0Jpao61w4zcn3BVZ4HQ
         RD0g==
X-Gm-Message-State: AODbwcBSyiRjBq6DE1vakhf3PJoqMfmhljgcJhrlOKO6it2HUekbVdym
	WDIc8ccvFqhUzNPN
X-Received: by 10.99.143.23 with SMTP id n23mr11598303pgd.158.1495466348998;
        Mon, 22 May 2017 08:19:08 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.39.14 with SMTP id r14ls3665096ota.15.gmail; Mon, 22 May
 2017 08:19:08 -0700 (PDT)
X-Received: by 10.55.20.9 with SMTP id e9mr20383972qkh.94.1495466347960;
        Mon, 22 May 2017 08:19:07 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1495466347; cv=none;
        d=google.com; s=arc-20160816;
        b=u6W5fD/yX0oOElANxeoGdp4y3tcsFLxX4Wi7HguyFM2GgRaq197rBJZK4tGiIM8HTt
         1bLeUlaI7Ds5UKiYB1T+b4J88EJd+qHbnSAoZbTOFKEMTNDAwOnTXM3xXE7Xjqomf/+i
         Y/SuMa1A8iF5wizhrhSPq/fnfq67fsPyzlidJoJyAL1IhM2elPilbl8CUjviTsLyWDXv
         pHxv0EKdXKqO6pNAJHOXhrTlqq2gWAXvWQPF5gdKNd6fqaN5ssEa40We7ygc14pxcEuF
         a2A0Uc1DQfMIwNCwzMeEfhA3v69IPPJtbq8biIWUPt4R++i0OKBAbUheTn7fdEEzn7dr
         No/g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=24t32sd3SfP/AJMU20JwUyLMYjIuz6+cfRbrtOR5TFE=;
        b=C0Ytm7AqK5byJXO34g2Bviy6+OWIxFr1eUEKWoBcE1R4mpYs1/pVXg1qH8Ympl3nUC
         HP7Q4MGxWcW+THkfAMJ35HUv5geD1MERy+kY+dFKB30Fh/odq2g+Y8PrNBH1tt/mT1j4
         DqlsWWOssxGEsF4nog8XYS3P9ZLKxrPyoFEjGF5IY4RsOBohAbadIIasPlLf8lGXt/CV
         z7IjcML8EfR5gasAVRAazsq6ChYHR1z7487CIva2UUZmSGF9Az7gmPSFW6FV+Gav1zaq
         NadG1c3ErjpNQsqQXptyczTzyYzVUyCOoroSLYbHChAZd7DTJF2hbD6mDIlSgy3e+HU+
         As8w==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id 40si18749925qkv.20.2017.05.22.08.19.07
        for <std-proposals@isocpp.org>;
        Mon, 22 May 2017 08:19:07 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [IPv6:2601:1c0:4501:5f9f:8466:3462:d05f:7085])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 9358C12C001
	for <std-proposals@isocpp.org>; Mon, 22 May 2017 08:19:06 -0700 (PDT)
In-Reply-To: <a61766a4-0b37-44b0-91eb-0f6f697dae00@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.org
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: <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:32576
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/32576>

On segunda-feira, 22 de maio de 2017 00:19:35 PDT ma.kalbfuss@web.de wrote:
> example(bool, bool):
>         xor     eax, eax
>         test    sil, sil
>         sete    al
>         test    dil, dil
>         je      .L2
>         add     eax, 4
>         ret
> .L2:
>         add     eax, 5
>         ret

You're showing that it is possible to inline functions. We already knew that.

Now try this with non-inline doit() functions. Just remove the function bodies 
from your example.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/1996408.ZYmak0RsWz%40tjmaciei-mobl1.

.
