comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Representation Clauses And Freezing
Date: 2000/07/21
Date: 2000-07-21T00:00:00+00:00	[thread overview]
Message-ID: <x7vittzz3if.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: 39784AC3.C2A2B817@acm.com

"Marin D. Condic" <mcondic-nospam@acm.com> 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




  parent reply	other threads:[~2000-07-21  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-17  0:00 Representation Clauses And Freezing Marin D. Condic
2000-07-17  0:00 ` Stephen Leake
2000-07-20  0:00   ` Marin D. Condic
2000-07-20  0:00     ` Stephen Leake
2000-07-21  0:00       ` Marin D. Condic
2000-07-21  0:00         ` Stephen Leake
2000-07-21  0:00           ` Marin D. Condic
2000-07-21  0:00         ` Simon Wright [this message]
2000-07-22  0:00           ` Marin D. Condic
2000-07-22  0:00             ` tmoran
2000-07-22  0:00               ` Marin D. Condic
2000-07-24  0:00               ` Ted Dennison
2000-07-21  0:00     ` tmoran
2000-07-18  0:00 ` Tucker Taft
2000-07-18  0:00 ` Nicolas Brunot
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox