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-Thread: 103376,25b9eb5c3a89bced X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: where exactly c++,c fail and Ada gets thru' References: <1145852356.559455.222600@i39g2000cwa.googlegroups.com> <1145855124.720029.35280@t31g2000cwb.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <%mi3g.943403$xm3.915025@attbi_s21> NNTP-Posting-Host: 12.201.97.176 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1145942587 12.201.97.176 (Tue, 25 Apr 2006 05:23:07 GMT) NNTP-Posting-Date: Tue, 25 Apr 2006 05:23:07 GMT Date: Tue, 25 Apr 2006 05:23:07 GMT Xref: g2news2.google.com comp.lang.ada:3927 Date: 2006-04-25T05:23:07+00:00 List-Id: Keith Thompson wrote: > > I haven't looked at the coding standards document in question. > Possibly it just forbids the use of array syntax to represent what's > really a pointer parameter. Forbidding pointer parameters would be a > serious problem; much of the standard library does this, and it's the > normal way to achieve the effect of passing an array. It's also the source for Ritchie's observation that "C's solution to this [variable-sized array parameters] has real problems, and people who are complaining about safety definitely have a point." -- Jeff Carter "Why don't you bore a hole in yourself and let the sap run out?" Horse Feathers 49