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,dab7d920e4340f12 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,dab7d920e4340f12 X-Google-Attributes: gid1014db,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Ada is 'better' than C because... Date: 1996/08/14 Message-ID: #1/1 X-Deja-AN: 174272949 references: <01bb7bf9$b89a1740$96ee6fcf@timhome2> <4un7j3$m9g@ursa.smsu.edu> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada,comp.lang.c Date: 1996-08-14T00:00:00+00:00 List-Id: Obryan Anthony (is this the right order?) says " I have a hard time seeing this as a problem. It's one of the fantastic advantages of the C language. An array of any given type can be passed to a user function and treated as an array of any other integral type, converted, processed, etc. in any manner the programmer desires." Nope, C, the language does not permit this, or at least says that the semantics are implementation defined. So your C compiler may or may not do something interesting, but you are writing highly non-portable code if you do this. It is possible to write portable code in C, but you have to first get rid of attitudes like this!