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,52fd60a337c05842 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-15 07:30:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!ihug.co.nz!cox.net!p02!news2.east.cox.net.POSTED!53ab2750!not-for-mail Message-ID: <3D0B4F68.1030106@telepath.com> From: Ted Dennison User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ada paper critic References: <3D0A399C.EF6F1BD9@acm.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 15 Jun 2002 14:30:56 GMT NNTP-Posting-Host: 68.12.51.201 X-Complaints-To: abuse@cox.net X-Trace: news2.east.cox.net 1024151456 68.12.51.201 (Sat, 15 Jun 2002 10:30:56 EDT) NNTP-Posting-Date: Sat, 15 Jun 2002 10:30:56 EDT Organization: Cox Communications Xref: archiver1.google.com comp.lang.ada:26023 Date: 2002-06-15T14:30:56+00:00 List-Id: sk wrote: >>... harder to write really nasty code in ada. > > > Are you sure ? I am. Its certianly not impossible, (or even very tough for the committed incompetent programmer) but its definitely harder. >>(The extense use of pointer arithmetic is the wordst >>and most powerful weapon in C). > > > Are you under the (false) impression that you cannot > totally hose the memory with Ada and address arithmetic ? You can indeed. However, the language doesn't out and out encourage it like C does. Its not a common idiom in Ada, and most newbies would have to do a lot of work to figure out how to do it. I C, all you have to do is use the predefined "+" operator. >>What about the operator overloading possibilities in ada? > > function "+"(A, B : My_Natural) return My_Natural is > begin > return 0; > end "+"; Actually, one I actually did to myself was to rename "<" to ">". That took me quite a while to track down too. :-( Of course that was in Ada83. With Ada95 the main reason for renaming functions is gone, taking this source of error with it (for me at least).