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!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Record representation Date: Wed, 9 Jun 2004 15:11:12 +0100 Organization: BAE SYSTEMS Message-ID: <40c7194b$1_1@baen1673807.greenlnk.net> References: <40c6d3d1$1_1@baen1673807.greenlnk.net> <1134178.8pc9pfiqhv@linux1.krischik.com> X-Trace: news.uni-berlin.de g2KrNT+QjHSrYCXPUdNwPgF6Szalzc+lphaJ3WRZP1MmxhN5bE X-Orig-Path: baen1673807.greenlnk.net!baen1673807!not-for-mail X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Original-NNTP-Posting-Host: baen1673807.greenlnk.net Xref: g2news1.google.com comp.lang.ada:1312 Date: 2004-06-09T15:11:12+01:00 List-Id: "Martin Krischik" wrote in message news:1134178.8pc9pfiqhv@linux1.krischik.com... [snip] > You might like to try: > > pragma Pack (AA); > > or > > for AA'Component_Size use A'Size; Ok, the example was too simple - imagine a record with components that are arrays, other record etc. It's a problem I've encountered a few times... -- Martin