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,3467cec1612741de X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-20 03:26:58 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!washdc3-snh1.gtei.net!news.gtei.net!news.mindspring.net!not-for-mail From: Larry Hazel Newsgroups: comp.lang.ada Subject: Re: Anonymous array clarification. Date: Mon, 20 Aug 2001 05:26:34 -0500 Organization: MindSpring Enterprises Message-ID: <3B80E5DA.65659B1E@mindspring.com> References: NNTP-Posting-Host: c7.ae.9d.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 20 Aug 2001 10:26:34 GMT X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en,x-ns11F8K63r3NhQ,x-ns2r2e09OnmPe2 Xref: archiver1.google.com comp.lang.ada:12114 Date: 2001-08-20T10:26:34+00:00 List-Id: McDoobie wrote: > > In Ada one can declare anonymous arrays (an array without a type assigned > to it.) However what would such an array be used for, and are the bounds > on it's use the same as for any other type of array. > > I guess what I'm asking is if I declare an array such as > > some_array : array(1..N); > > Can I assign values such as '1' '2' '3' 'H' 'y' '-' 'foo' all to the same > array? No, no. Only the array type is anonymous. The data type of elements must be declared. some_array : array(1..N) of Integer; Larry