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=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f31af493775a063b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!26g2000hsk.googlegroups.com!not-for-mail From: gautier_niouzes@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Question about arrays and no. of elements Date: Thu, 15 May 2008 09:30:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1255e47e-1c80-486a-a884-b72a0f837236@26g2000hsk.googlegroups.com> References: NNTP-Posting-Host: 206.122.158.4 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1210869007 18472 127.0.0.1 (15 May 2008 16:30:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 15 May 2008 16:30:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 26g2000hsk.googlegroups.com; posting-host=206.122.158.4; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:78 Date: 2008-05-15T09:30:06-07:00 List-Id: On 15 Mai, 17:19, amal.alpho...@gmail.com wrote: > If I define an array with say a million elements, and I only put data > in 10 of them, is it actually a waste of space/time with the array or > does Ada only create elements when there is data to put in (so it is > efficient)? When you don't know the size: either you waste time (a smart extensible array), or you waste space (a simple array)... This whatever the language. G.