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-Thread: 103376,fe5e779eaf4ecf02 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!k13g2000hse.googlegroups.com!not-for-mail From: christoph.grein@eurocopter.com Newsgroups: comp.lang.ada Subject: Re: Returning ranges from a function (was: How to loop (elegant) throug a vector ?) Date: Mon, 23 Jun 2008 05:28:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <20080620191237.5971480b@cube.tz.axivion.com> <6ebe0cd8-288e-4997-94d7-61905fd2dfc0@r66g2000hsg.googlegroups.com> <20080622204713.2127db4f@cube.tz.axivion.com> <37e7c45f-7c3d-464a-8a66-f5911443ec34@d45g2000hsc.googlegroups.com> <20080623114742.748d3869@cube.tz.axivion.com> <5f3204b8-5f93-4a65-a7ff-86abb3a839e9@k37g2000hsf.googlegroups.com> NNTP-Posting-Host: 80.156.44.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1214224086 20270 127.0.0.1 (23 Jun 2008 12:28:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 23 Jun 2008 12:28:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k13g2000hse.googlegroups.com; posting-host=80.156.44.178; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 webwasher (Webwasher 6.7.0.3295) Xref: g2news1.google.com comp.lang.ada:816 Date: 2008-06-23T05:28:05-07:00 List-Id: > With my version of GNAT everything is stored at the same location when > "aliased" is added to components of the array. > I can see it by having *equal* access variables created from different > array indices: But there is nothing to store - Empty_Record'Size = 0, so nothing is stored in the same location for each index value. Array object A is nearly empty, it only holds the boundaries. Really interesting :-) Note: A compiler need not follow the recommendation to create objects of zero size. GNAT does because it has to because it claims to implement all annexes.