From: Craig Carey <research@ijs.co.nz>
Subject: Re: Representing data differently
Date: Mon, 24 Feb 2003 10:09:36 +1300
Date: 2003-02-24T10:09:36+13:00 [thread overview]
Message-ID: <q5di5v0623163ejjvpjtm8e9hheo810dfo@4ax.com> (raw)
In-Reply-To: 686be06c.0302070615.3943b629@posting.google.com
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
next prev parent reply other threads:[~2003-02-23 21:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-07 14:15 Representing data differently Daniel Allex
2003-02-07 18:07 ` tmoran
2003-02-09 4:39 ` Craig Carey
2003-02-10 12:47 ` Colin Paul Gloster
2003-02-13 17:21 ` Craig Carey
2003-02-08 0:24 ` Wojtek Narczynski
2003-02-12 18:52 ` Martin Krischik
2003-02-22 19:09 ` Robert A Duff
2003-02-23 13:06 ` Martin Krischik
2003-02-23 21:09 ` Craig Carey [this message]
2003-02-23 21:59 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox