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,38ceb882eed41e1e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-01 19:39:54 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Size and pack Date: 1 Nov 2001 19:39:53 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0111011939.5a2abd8d@posting.google.com> References: <9ff447f2.0110100005.2503bb00@posting.google.com> <3BC40DF2.9447F025@icn.siemens.de> <3bc41989.4285341@news.demon.co.uk> <5ee5b646.0110301750.38ba5bfd@posting.google.com> <9ff447f2.0110311758.2be52637@posting.google.com> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1004672393 28622 127.0.0.1 (2 Nov 2001 03:39:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 2 Nov 2001 03:39:53 GMT Xref: archiver1.google.com comp.lang.ada:15609 Date: 2001-11-02T03:39:53+00:00 List-Id: "Jeff Creem" wrote in message news:... > I tend to avoid 'component size since a lot of my code needs to compile > on Ada 83 and Ada 95. The pragma pack followed by the confirmatory > 'size clause on the overall array should force the compiler to do what I > want and > if it does not (because it ignores the pragma) it will reject the final rep > spec on the array. > > So the final 'size is not redundant. Right, my point was that the final 'Size is redundant *if* you specify the full representation, but of course if you omit the Component_Size clause you have not fulfilled this precondition.