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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Record representation Date: Wed, 09 Jun 2004 13:38:01 +0200 Organization: AdaCL Message-ID: <1134178.8pc9pfiqhv@linux1.krischik.com> References: <40c6d3d1$1_1@baen1673807.greenlnk.net> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1086781954 00 25310 xMDWGU2rGqyAHuI 040609 11:52:34 X-Complaints-To: usenet-abuse@t-online.de X-ID: E2lXuYZSoerhr6Ln0KWuv8bLEXa52DYEhGX8RpylAlIwA7fTNrangM User-Agent: KNode/0.7.7 Xref: g2news1.google.com comp.lang.ada:1300 Date: 2004-06-09T13:38:01+02:00 List-Id: Martin Dowie wrote: > Is there anything that could be done (quickly ;-) by the ARG for Ada200Y > to do something about this common pain in the *ss? > > package Record_Rep is > > type A is record > I : Integer; > end record; > for A'Size use Integer'Size; > > type Index is new Integer range 1 .. 10; > > type AA is array (Index) of A; > for AA'Size use A'Size * Index'Last; -- Not allowed!!!!! You might like to try: pragma Pack (AA); or for AA'Component_Size use A'Size; > end Record_Rep; > > Surely the language could be made smart enough to support this? This can > be a real maintenance nightmare to change. -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com