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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7e021fc0e7fc15a1 X-Google-Attributes: gid103376,public From: Keith Thompson Subject: Re: Ada 95 LRM Error? Date: 1999/01/31 Message-ID: #1/1 X-Deja-AN: 439139709 References: <36AF6C22.896FC5B8@easystreet.com> <78oaj9$d9g@sjx-ixn5.ix.netcom.com> <36AFC42A.57696F4D@easystreet.com> <78qsvv$pim@dfw-ixnews10.ix.netcom.com> <78seia$f03$1@nnrp1.dejanews.com> X-Complaints-To: usenet@nusku.cts.com X-Trace: nusku.cts.com 917819122 12431 198.68.168.21 (31 Jan 1999 21:45:22 GMT) Organization: CTS Network Services NNTP-Posting-Date: 31 Jan 1999 21:45:22 GMT Newsgroups: comp.lang.ada Date: 1999-01-31T21:45:22+00:00 List-Id: robert_dewar@my-dejanews.com writes: > C is also a strongly typed language in this technical > sense, but again, the facilities for declaring types are > poor, and for example, C chooses to make int and char the > same type, just as Ada chooses to make natural and integer > the same type. The general point is correct, but the specific point is not; int and char are definitely distinct types in C. Note that there are several possible sources of confusion here. The types char and int are assignment compatible, character literals are of type int, char objects are usually promoted to int in arithmetic expressions, and char function arguments are promoted to int in the absence of a prototype. -- Keith Thompson (The_Other_Keith) kst@cts.com <*> Qualcomm, San Diego, California, USA I must be a techno-geek. My mouse is bigger than my phone.