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,bd45e29f9dafca87 X-Google-Attributes: gid103376,public From: Keith Thompson Subject: Re: bitwise comparators Date: 2000/01/18 Message-ID: #1/1 X-Deja-AN: 574552541 Sender: kst@king.cts.com References: <3880D375.7E363123@hotmail.com> <38829638.0@news.pacifier.com> <3882FC1C.2BA8C959@hotmail.com> <85vmn2$ki1$1@nnrp1.deja.com> <38836CF2.AB738B8B@hotmail.com> <3883A414.8559E641@earthlink.net> X-Trace: thoth.cts.com 948257436 86616 198.68.168.21 (19 Jan 2000 04:50:36 GMT) Organization: CTS Network Services Newsgroups: comp.lang.ada X-Complaints-To: newsmaster@cts.com Date: 2000-01-18T00:00:00+00:00 List-Id: Jeff Carter writes: [...] > > With true arrays, do you mean out of bound checking, etc? This can be done > > with _proper_ programming in C! > > C does not have arrays; it only has different notations for address > arithmetic. That's a slight exaggeration. C does have array types and array objects. For example this: int a[10]; declares a as an array of 10 ints, very much like Ada's A: array(0 .. 9) of Integer; It does not, contrary to popular misconception, declare a as a pointer. What often causes confusion is that, in most expression contexts, a reference to the name of an array object "decays" to a pointer to the array's first element. C arrays are not first-class types, but they do exist. -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> Welcome to the last year of the 20th century.