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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ab36006a122bb868 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Overlay allowability Date: 2000/05/01 Message-ID: <8eketr$i3c$1@nnrp1.deja.com>#1/1 X-Deja-AN: 617907628 References: <390D94FB.D23390D4@lmco.com> X-Http-Proxy: 1.0 x21.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon May 01 17:29:53 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m15) Date: 2000-05-01T00:00:00+00:00 List-Id: In article <390D94FB.D23390D4@lmco.com>, "Marc A. Criley" wrote: > A few times in my career I've encountered situations where two > different representations of the same set of bits are desired in a > high > This has always struck me as somewhat iffy, but I confess I've used > it as well on a couple occasions with Ada 83. I've always found that > it works as one intuitively expects, so long as all alignment, layout > and sizing aspects are fully thought through and accommodated. In Ada 83 I believe doing that rendered your program erronious. In 95, I'm not sure, but its probably been reassigned to "bounded error" territory. This is exactly what Unchecked_Conversion was put in the language for. If performance prohibits copying the whole structure, you can always perform unchecked conversion on an access type that points to your structure (even SMART allowed this). -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.