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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, PLING_QUERY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,4873305131bf4d94 X-Google-Attributes: gid109fba,public X-Google-Thread: fdb77,4873305131bf4d94 X-Google-Attributes: gidfdb77,public X-Google-Thread: 103376,4873305131bf4d94 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,4873305131bf4d94 X-Google-Attributes: gid1014db,public From: seebs@plethora.net (Peter Seebach) Subject: Re: How big is an int? (was: Yet another stupid language war (was: ... the only languages you need!!)) Date: 1997/11/07 Message-ID: <63tqqk$bu0$1@darla.visi.com>#1/1 X-Deja-AN: 288180537 References: <34557f2b.1934172@news.mindspring.com> <63r2sv$rgm$1@helios.crest.nt.com> <63toc4$baf@sun001.spd.dsccc.com> Organization: Plethora Internet NNTP-Posting-Date: 06 Nov 1997 19:27:48 CST Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.java.advocacy,comp.lang.c,comp.lang.c++ Date: 1997-11-06T19:27:48-06:00 List-Id: In article <63toc4$baf@sun001.spd.dsccc.com>, Mike McCarty wrote: >It's true that EOF does not have to be an "extra value". However, it >-is- required to be -negative-. Further, there seems to be an implicit >requirement that an int can represent any value which an "unsigned char" >can represent (see 7.3). If one takes the wording > In all cases the argument is an int, the value of which shall be > representable as an unsigned char or shall equal the value of > the macro EOF. >as meaning that the values representable as unsigned char is a subset of >the values representable as an int, then I think that it follows that >it is a -proper- subset. That would seem to imply that sizeof int > >sizeof char. I don't see it requiring that. I see it requiring that the arguments thus described must be in the subset of values representable both in int and in unsigned char, or EOF, but I don't see anything ruling out values representable in unsigned char which cannot be used as arguments for these functions. :) -s -- seebs@plethora.net -- Speaking for myself. No spam please. Copyright 1997. All rights reserved. This was not written by my cat. C/Unix wizard - send mail for help! -- - More Net, Less Spam!