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,fd173879a595bde X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!atl-c08.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!ALLTEL.NET-a2kHrUvQQWlmc!not-for-mail Date: Fri, 04 Nov 2005 08:36:46 -0600 From: "Marc A. Criley" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Default rep specs for record types - documented?? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <41f67$436b720e$499545a$1925@ALLTEL.NET> X-Complaints-To: abuse@usenetserver.com Organization: UseNetServer.com X-Trace: 41f67436b720ea13cf1ff01925 Xref: g2news1.google.com comp.lang.ada:6190 Date: 2005-11-04T08:36:46-06:00 List-Id: Steve wrote: > "Anonymous Coward" wrote in message > news:slrndmloee.kq0.bogus_addy@tango.mindfuq.org... > >>I'm interested in finding out what the default representation of a >>record type is. Can I expect the sequence of elements in the default >>representation to match the sequence they are defined in? >> > > Look in the Ada 95 LRM section 13, Representation Issues > > Section 13.1 paragraph 19 > > If an aspect of representation of an entity is not specified, it is chosen > by default in an unspecified manner. > > So... if it matters, use a representation clause. Another way to do this, if you just want to guarantee component ordering, and you don't mind some extra padding possibly being added into the record instances, is to apply pragma Convention (C, ...) to the record. While that convention is (obviously) nominally intended for interfacing to external C software, it has the desired effect of preventing reordering of record components. -- Marc A. Criley -- McKae Technologies -- www.mckae.com -- DTraq - XPath In Ada - XML EZ Out