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-23 13:09:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.clear.net.nz!news.clear.net.nz.POSTED!not-for-mail NNTP-Posting-Date: Sun, 23 Feb 2003 15:09:32 -0600 From: Craig Carey Newsgroups: comp.lang.ada Subject: Re: Representing data differently Date: Mon, 24 Feb 2003 10:09:36 +1300 Message-ID: References: <686be06c.0302070615.3943b629@posting.google.com> X-Newsreader: Forte Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Customer of Mercury Telecommunications Ltd Cache-Post-Path: drone5.qsi.net.nz!unknown@tnt1-86.quicksilver.net.nz X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) X-Original-NNTP-Posting-Host: drone5-svc-skyt.qsi.net.nz X-Original-Trace: 24 Feb 2003 10:09:28 +1300, drone5-svc-skyt.qsi.net.nz NNTP-Posting-Host: 203.97.37.6 X-Trace: sv3-6qoh8wllBFDJUXfvDaRWDpFpPOxqL9vdqtFiS/OVY99/8cIe7lYh092qt90FeXa7n4VkFrFx1VNaGqX!RC+OhFuPMOWMkAFKkFvqPXIFbNT/ws8CExeU0oD+ZMK3ccq5Bz/gHyFTg3laPJJ2rKOK6zxPpkW2!6Sb+zI4= X-Complaints-To: Complaints to abuse@clear.net.nz X-DMCA-Complaints-To: Complaints to abuse@clear.net.nz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:34488 Date: 2003-02-24T10:09:36+13:00 List-Id: On 7 Feb 2003 06:15:18 -0800, dallex@erols.com (Daniel Allex) wrote: >In C I can represent the same data multiple ways using structs and >unions. How and can I do this in Ada? See example below: ... >union MT_37 ... >typedef union MT_37 MT_37; > Ada Issue AI-00216 of 1999 considers a "Pragma Unchecked_Union". The AI is online at: http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-00216.TXT : Several Ada 95 compilers now support a pragma Unchecked_Union for : specifying that the discriminant of a variant record should not be : present at run-time, thereby matching a C union. Other AIs: (1) http://www.ada-auth.org/AI-SUMMARY.HTML and (2) http://www.ada-auth.org/ais.html , files REST_AIS.ZIP, DEF1_AIS.ZIP, ACS.ZIP. Craig Carey