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,65234f982d381bb8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-20 05:07:30 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Passing an Ada array to a C function Date: 20 Sep 2001 05:07:30 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0109200407.467f5d51@posting.google.com> References: <86772402.0109101721.26fc679a@posting.google.com> <3BA74E07.60E105C2@fr.thalesgroup.com> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1000987650 28188 127.0.0.1 (20 Sep 2001 12:07:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 20 Sep 2001 12:07:30 GMT Xref: archiver1.google.com comp.lang.ada:13208 Date: 2001-09-20T12:07:30+00:00 List-Id: "David Botton" wrote in message news:... > Depends on the age of your compiler. C and C++ were designed by committee > (to "have fun") unlike Ada so things are very rarely concrete. > > > void My_C_Func (char* s); > > > void My_C_Func (const char *s); > > > David Botton I don't think it is fair to claim that C and C++ were designed by committee any more than Ada was. In all three cases, the basic language design was the work of a single coherent design team (in the Ada case, this was more of a team, in the C++ case, more of an individual). The preliminary design was then debated and (significantly) modified by a committee (Ada 95 would not have looked the same if the design team had been able to follow only its own preference :-) Let's not make the mistake of bashing C and C++ where the bashing is not fair :-)