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,54a7591bed8148f2 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Thu, 10 Jun 2004 01:13:25 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <40c6d3d1$1_1@baen1673807.greenlnk.net> Subject: Re: Record representation Date: Thu, 10 Jun 2004 01:13:44 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-cpo0hByRJCC/cDOuORl+pWMbOX0n0hg/28uXhY7wz7NH2cQ+/M1thSikHtqXJNnHZ3n99bk3v2jrh3w!d8rTKi1lFStAWOkgGa2kU3HkASfAK6Qxcf6I0aZbb6lgOf+lIQ+vHmm+cE8RTY8LN+RX/Hw6bnEs X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: g2news1.google.com comp.lang.ada:1357 Date: 2004-06-10T01:13:44-05:00 List-Id: "Stephen Leake" wrote in message ... > > type AA is array (Index) of A; > > for AA'Size use A'Size * Index'Last; -- Not allowed!!!!! > > for AA'Size use A'Size * Max_Index; The trouble here is that A'Size is not static (A being a composite type); Index'Last *is* static. So you've solved the wrong problem. :-) Randy.