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,f7c38a023cf370dc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Should representation clauses be complete for each bit? References: <73c10395-ec4f-4a02-b0fc-e35bc14424fa@e18g2000vbx.googlegroups.com> <17c212b1-d0a6-498a-a381-71188a67ec65@a10g2000yqn.googlegroups.com> Date: Thu, 21 Jul 2011 04:00:13 -0400 Message-ID: <82tyag5aia.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) Cancel-Lock: sha1:WmrBv2Dra4jGkdaU25FkmoSgIvs= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 4b3e34e27dca3e029e66109807 Xref: g2news2.google.com comp.lang.ada:21229 Date: 2011-07-21T04:00:13-04:00 List-Id: okellogg writes: > On 20 Jul., 16:51, Robert A Duff wrote: >> [...] >> > IMHO it would be a real gain if we could explicitly mention the unused >> > bits in the rep spec. >> >> I think the unused bits should be explicitly declared. > > My use case originates from a bit packed communication protocol where > the standard requires spare bits interspersed among the useful data. > However the API of the driver shall not expose these spare fields. > This leads to the complexity that I have two sets of type definitions, > one for on-the-wire usage and the other, almost identical (modulo the > spare fields) for the driver API - which entails the need for hand > coded conversion between these types. +2 -- -- Stephe