220 41106 <26165210.kvzUkpVNyP@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: signed char is not treated as char and unsigned char
Date: Wed, 28 Nov 2018 14:21:14 -0800
Lines: 23
Approved: news@gmane.org
Message-ID: <26165210.kvzUkpVNyP@tjmaciei-mobl1>
References: <d78eb05f-164d-4cc1-81fa-1c6740ebab25@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 1543443555 26812 195.159.176.226 (28 Nov 2018 22:19:15 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 28 Nov 2018 22:19:15 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBYFJ7TPQKGQEJLL6QZQ@isocpp.org Wed Nov 28 23:19:11 2018
Return-path: <std-proposals+bncBCB4TK757YBRBYFJ7TPQKGQEJLL6QZQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk1-f200.google.com ([209.85.222.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBYFJ7TPQKGQEJLL6QZQ@isocpp.org>)
	id 1gS8Ao-0006rL-QN
	for gclcip-std-proposals@m.gmane.org; Wed, 28 Nov 2018 23:19:10 +0100
Original-Received: by mail-qk1-f200.google.com with SMTP id y83sf27698754qka.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 28 Nov 2018 14:21:21 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1543443681; cv=pass;
        d=google.com; s=arc-20160816;
        b=aeS1N4pTQFn0SnsER4w5EApnP8D35FM5l7FtDez31pTG738XZccjvbrjA37S62VvJv
         GxMX/zI+s40FMuN5bMnPVNETmFo9HvMOY4tCke7C4NB925PeL5WpcTSG/FYXz83RoKad
         jfbzSvv1i/UauM0/2u6Dw8pu6PFRWTv5lW3huda4ki0BQfqlAbs3IL6avD3n8bulwbgB
         6rKqkNSX8fk47IxdDOOCDVnwmhRue+nRpUuSa1Vv+I8IBc02c2hSx+XWH9ddp+7ls+7Q
         q39UzoC0v84eQnZ8iu9orCJj2APMjIoW1c7SMOSj2nVbnNWehHlD0tDjJz0mh8OIl+nX
         JzTw==
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:dkim-signature;
        bh=h56YJfAy7iqT1o4zmQATUljBMwKLOHREexhjV4aw8+s=;
        b=EhxCl+rVfi25PN4TbSqFBuRLS8bSwh7Qv3zBo8PyyBzUFu2jmiWX6MLwxF20+YH2lG
         O/iyzy3XXcWFJ6M6jBy3WFRaDRXcsc/gq1yAuB6iiIn2WeGN6WjUbgStE3OrNVh+Oekb
         L4mwdCERbZMDuSOlhGaqox6RlUjf/QEl2/YK0Xd8AZAboR3NkqAeaEWd8OfDGBC2gGqD
         jFOmBVtPDOJ9ol71191nvyjJJyiskPM85hGojF3gJJ2/valaQpFnw0j/dx4Fz6u4SrJA
         qRNK3zF6b3/nl96W8p5X50eO5fZmoUqyHZ4aLdkbkdGuU+RYpqzjeN0toivp7E5USVWm
         uazQ==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 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:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=h56YJfAy7iqT1o4zmQATUljBMwKLOHREexhjV4aw8+s=;
        b=JrkaN07Jc5O2iDZh2CdJiRnFHCZ+WyqpyTAdhCwP4k9hEwuBbA8Ovufnlmq/WNmnEU
         eWp9oKbsN25aXI7QIyU6dj/J07jcZYQz3W+KtLsXDeuCS6vXYx2ZYcXPGyKNgdUU3H/2
         guRasQn9LFMa/AO30X5FM4EMPpWdRJAhUgfA9VdPHngjST+aQLFvMX5JlHPqGvYYkp0q
         dL5m93FMQCVePTMr583Dx9//1JzbZqcMz7LRPVlg5AzPMn9/p6//K0lu/SahMbNc4coD
         4O43LeeijBpfZ4FFZ/DX25hCbwltU3F8lPD9chlybQlrKUaI5+8uuAtlITKGiwbkdb+f
         31iA==
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=h56YJfAy7iqT1o4zmQATUljBMwKLOHREexhjV4aw8+s=;
        b=f0F1+BvAmWYYknz9AYHP7h6z5aV3QL5c/wKxouQplIEsKaszI51rrZzXNW0l1hF/sS
         AVM17eFLcM43QynaQXYxq0XDgttz9b97qjYTCjVDj0M/cv7+5yHfnRTZRYd7BlV54egK
         hASPA8oXO+iI7gWbPVLNwOsokygnxHYi6/ftItNnWs/vYwkkZ64FDBKaizbyo72eNb4H
         34AMA1bKh8dhy/KWskbwL+LFcnFatGRzp+0pV/oxbh/GVWjF4v+Vu9NbBnfISRVWHfgf
         PB51+DUJgmrUMkVLv30iZlOS0zX9bJtodDyfA9tfPKV1sXHo3D+VP60XDFF91XwtyUfw
         Xt4Q==
X-Gm-Message-State: AA+aEWYvJn75UX/n1rbvF+VJd8dLtpu6xnLyC4MKvjLj3qOwA2ZyRXrC
	SsZsNL9XQPQBYqIoYWlHyLgHbw==
X-Google-Smtp-Source: AFSGD/XEkFSNnkxE8M4AG1Q8QCZ/yRW9pPPiBbIvUAzMQLVTQ3pFOEqohbaiK9dVbOFU84yjgDrzig==
X-Received: by 2002:a37:a194:: with SMTP id k142mr4902988qke.3.1543443681366;
        Wed, 28 Nov 2018 14:21:21 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a37:641:: with SMTP id 62ls13341553qkg.8.gmail; Wed, 28 Nov
 2018 14:21:20 -0800 (PST)
X-Received: by 2002:ae9:dc43:: with SMTP id q64mr35190607qkf.223.1543443680499;
        Wed, 28 Nov 2018 14:21:20 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1543443680; cv=none;
        d=google.com; s=arc-20160816;
        b=rduLq/Ao9Egd0DPYnKcB+xH3YPf2fOKlv7BE+CsjNhL/CY/6gmMgVoScBO8vauSMrx
         kE5JePA3btkdHobGjHOj5Sj1uxrE+JGyQdi/+PaJD+mDs5TH+IhmEhkT5XXu76lV1qKI
         krdG5qpcZgtbZG1si3UK58FYtNzcEIMm0pUlOWLVePQ3pGPJev1+KJpDUYnsmj9zro8+
         YYXH6bVMy9lpscZFw5oG4/1D1kleYfZVKiHpcLmfQDeZz8rrVjsBcJHThOlZkRB+haHu
         dzdN1NeJeyZ08uWZ/g59/lhYUDu4mwsMOJ+UF3Nt7hTuwzv43QDYfzv+zEOXT+jRn65P
         8e+Q==
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;
        bh=vFtQrcTHf/SwvcEwFSp3iJsykdee/rGgKqEGGfFVpDE=;
        b=VyNTS0gOBsdvSDob+IUJvZIl39kZeEyvMyQ2T3p2onB1PH7HAIT72FwfHZENsZhCpb
         2dkDzoUm6fcUu+c0mlY0qtC/97YdOISMdIzhL7MzjF6qrWnNXwZo8zleqhlD/w+UV99O
         nbuvRFUNSy/M4UZdFDGG3/mwbxl9zLCYjJv7O3uJh0itK/vQzfCWMtNc1xnQWWL4vAR1
         eyPuZm4cdpVrR8xsCmVI7hRmL1nHgKQaZxR8gUznXQ+/7chlfIYMQ/n7wETdvhu/6eb1
         gxvwrD9i7D1cLX61a+6RqrW7l0ecRtjUM3iUGIvHq8a4x+rY+A9hzwE/J+YbtJ7LjpFO
         L1ig==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from smtp.macieira.info (smtp.macieira.info. [2001:19f0:5:2221::1:3])
        by mx.google.com with ESMTPS id k34si1252752qtf.286.2018.11.28.14.21.20
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 28 Nov 2018 14:21:20 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) client-ip=2001:19f0:5:2221::1:3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [134.134.139.82])
	by smtp.macieira.info (Postfix) with ESMTPSA id 0431C1E68D
	for <std-proposals@isocpp.org>; Wed, 28 Nov 2018 14:21:18 -0800 (PST)
In-Reply-To: <d78eb05f-164d-4cc1-81fa-1c6740ebab25@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 2001:19f0:5:2221::1:3 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-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:41106
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/41106>

On Wednesday, 28 November 2018 10:46:00 PST riadwaw@gmail.com wrote:
> I noticed, that in several places in the standard, e.g in [basic.types],
> char, unsigned char, or std::byte are mentioned separately (basically as
> types that types that can alias anything else from my understanding).
> There's no signed char in the list, despite it's a separate type.
> What may be a reason for that?

Because it's signed. As a signed integer, there could be bit patterns that 
don't form valid, unique values. For example, in one's complement, 0x00 and 
0xFF are both zero

-- 
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/26165210.kvzUkpVNyP%40tjmaciei-mobl1.

.
