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: 1014db,582dff0b3f065a52 X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,582dff0b3f065a52 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-08 03:02:02 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!148.122.208.68!news2.oke.nextra.no!nextra.com!news1.oke.nextra.no.POSTED!not-for-mail Followup-To: comp.lang.ada Sender: ohk@maestro.clustra.com Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Subject: Re: How Ada could have prevented the Red Code distributed denial of service attack. References: <3b690498.1111845720@news.worldonline.nl> <9kbu15$9bj@augusta.math.psu.edu> <9kbvsr$a02@augusta.math.psu.edu> <3B69DB35.4412459E@home.com> <3B6F312F.DA4E178E@home.com> <23lok9.ioi.ln@10.0.0.2> <3B706FDC.E965C526@worldnet.att.net> <3B70BA36.50A977BE@ix.netcom.com> From: Ole-Hjalmar Kristensen Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 194.143.59.98 X-Complaints-To: news-abuse@nextra.no NNTP-Posting-Date: Wed, 08 Aug 2001 12:00:41 MET DST Organization: Nextra Public Access X-Trace: readme.online.no 997264841 194.143.59.98 Date: 08 Aug 2001 12:00:59 +0200 Xref: archiver1.google.com comp.lang.ada:11594 comp.lang.c:72866 comp.lang.c++:80911 Date: 2001-08-08T12:00:59+02:00 List-Id: Lao Xiao Hai writes: > Ada has true multi-dimensional arrays. Consequently, we can have a simple two > or three- (or more) dimensional array as well as an array of an array (a la C). I > can write algorithms that correspond directly to those found in Fortran (using a > pragma Convention) so I may have an array that is either column major or row > major, depending on the nature of the problem I need to solve. There are so > many other examples that eclipse the capabilities of C that they are too numerous > to address here. Suffice it to say, this is one area where C and C++ simply don't > measure up to Ada. Minor nit: C HAS true multidimesional arrays, just the same as Fortran. The ONLY difference between C and Fortran arrays are that C arrays are row order and start at 0. -- Kabelsalat ist gesund. Ole-Hj. Kristensen