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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bb6f4bd169077fb3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-07 10:07:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Representing data differently References: <686be06c.0302070615.3943b629@posting.google.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc51.ops.asp.att.net 1044641254 12.234.13.56 (Fri, 07 Feb 2003 18:07:34 GMT) NNTP-Posting-Date: Fri, 07 Feb 2003 18:07:34 GMT Organization: AT&T Broadband Date: Fri, 07 Feb 2003 18:07:34 GMT Xref: archiver1.google.com comp.lang.ada:33890 Date: 2003-02-07T18:07:34+00:00 List-Id: >In C I can represent the same data multiple ways using structs and >unions. How and can I do this in Ada? In Ada it's called Unchecked_Conversion. It's "unchecked" because there's not much the compiler can do to help check that you coded what you meant to code. Look it up in any Ada text.