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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,65f09e2d2d4dad56 X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: Representation Clauses And Freezing Date: 2000/07/21 Message-ID: #1/1 X-Deja-AN: 649409764 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: <3973192E.E7337814@acm.com> <397707E2.CCDB7C44@acm.com> <39784AC3.C2A2B817@acm.com> X-Trace: news.demon.co.uk 964257464 nnrp-08:25180 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 2000-07-21T00:00:00+00:00 List-Id: "Marin D. Condic" writes: > Try to imagine that you want to line up a data type to match a > hardware register or a message coming into a system from the outside > world. You have to put a rep clause on the data type so that > specific bits, bytes and words fall into specific positions. Having > the compiler reject your rep clause and suggest another does > absolutely no good and is totally pointless. I do agree. But, you are trying to do this with tagged types, and the tag part is not specified by the standard. If you have the same release of the same compiler on the same hardware at both ends, why use rep clauses? (I'm assuming that the tag isn't a pointer to a type-specific dope structure -- if it was you would be completely wrong to try to send such data over the wire or even inter-process). If you have any difference at all, you *can not* sensibly send tags over the wire. -Simon