From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1cf653444208df72 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-16 13:12:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.86.7.162!newsfeed.wirehub.nl!newsfeed.germany.net!newsfeed2.easynews.net!easynews.net!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: ada vs. cpp Date: Tue, 16 Oct 2001 22:13:33 +0200 Organization: Enyo's not your organization Message-ID: <878zebmjgy.fsf@deneb.enyo.de> References: <9q7na102nqn@drn.newsguy.com> <3BCBF40A.BBDD4FE6@free.fr> <87669foaf2.fsf@deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:14744 Date: 2001-10-16T22:13:33+02:00 List-Id: Stephen Leake writes: > Florian Weimer writes: > >> lutz@iks-jena.de (Lutz Donnerhacke) writes: >> >> > :3 When applied to an operand that has type char, unsigned char, or signed >> > : char (...) the result is 1. When applied to an operant that hast array >> > : type, the result is the total number of bytes in the array. ... >> > >> > Consequence: No compiler is a conforming one when a char is not a byte?! >> >> Yes, of course. Unfortunately, this way, a low-level concept (storage >> unit) and a high-level one (character set) are strongly linked, which >> is a rather bad idea. > > Actually, a C compiler with a 16 bit char is conforming; this > statement in the C standard simply tells you that a size 1 for this > compiler means 16 bits. > > Remember, there is nothing "standard" about an 8 bit byte. The revision of POSIX.1 will require 8 bit bytes, I think, but of course, there's no such requirement in the C language (except that the size must be greater than 7 bits).