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!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc07.POSTED!20ae255c!not-for-mail Newsgroups: comp.lang.ada From: Anonymous Coward Subject: Re: Default rep specs for record types - documented?? References: Message-Id: User-Agent: slrn/0.9.7.4 (Linux) Date: Fri, 04 Nov 2005 04:11:18 GMT NNTP-Posting-Host: 141.149.78.234 X-Complaints-To: abuse@verizon.net X-Trace: trnddc07 1131077478 141.149.78.234 (Thu, 03 Nov 2005 23:11:18 EST) NNTP-Posting-Date: Thu, 03 Nov 2005 23:11:18 EST Xref: g2news1.google.com comp.lang.ada:6171 Date: 2005-11-04T04:11:18+00:00 List-Id: In article , Steve wrote: > > 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. Thanks for the feedback. Essentially what that is saying is that there are no guarantees for what to expect from a default representation. It bothers me to read this, because it counters my understanding - and counters what Cohen has written in ADA as a Second Language. Example: Cohen states that enumerated types are guaranteed to have a representation that numbers the first element as zero, and increases sequentially. Is this not really guaranteed? What's disappointing is that rep specs add considerable clutter. Readable code avoids redundancy, so having default representation aspects that are guaranteed enable less noisey code. I'm not looking forward to rep specing records bit for bit simply to enforce the same order of elements that's specified in the operation specs.