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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aeab6b16387b2612 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-16 20:53:37 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Nonsense (was Re: How to do it in Ada ?) Date: 16 Jul 2001 20:53:36 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0107161953.2ed4b7a2@posting.google.com> References: <9itna2$i5b$1@news.tpi.pl> NNTP-Posting-Host: 208.224.78.59 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 995342016 1418 127.0.0.1 (17 Jul 2001 03:53:36 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 17 Jul 2001 03:53:36 GMT Xref: archiver1.google.com comp.lang.ada:10039 Date: 2001-07-17T03:53:36+00:00 List-Id: "Mark Lundquist" wrote in message news:... > What one *could* write (not that you'd want to, but it illustrates > the language concept I was trying to highlight), is: > > X : new X_Array_Type (1 .. N); > > begin > X := (others => 0); > . > . I am sure others will point out that this is also incorrect. As I have suggested in the past, I strongly advise that if people post Ada code, they compile it and make sure it works, and then cut and paste actual working code. This will help avoid spreading misinformation. This is good advice for anyone, no matter how well you think you know Ada. I certainly do it for any code I post, it is too easy to make a silly typo, and end up confusing people if you do not take the trouble to make sure that code you post is correct.