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 08:29:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!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 17:46:09 +0200 Organization: Enyo's not your organization Message-ID: <87669foaf2.fsf@deneb.enyo.de> References: <9q7na102nqn@drn.newsguy.com> <3BCBF40A.BBDD4FE6@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:14693 Date: 2001-10-16T17:46:09+02:00 List-Id: 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. > Ah I see: C requires (by a footnote) that Storage_Units are similar > to a char. I don't think footnotes are normative. There has to be a way to derive this from the main text.