comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Representation of Variant record
Date: 1997/02/21
Date: 1997-02-21T00:00:00+00:00	[thread overview]
Message-ID: <dewar.856574035@merv> (raw)
In-Reply-To: 330DC254.7682@ccgate.hac.com


Ayman asks

<<How is a variant record implemented in Ada. I need to write a variant
record and then be able to read its contents and copy them into a C
union.>>

This is a misformed question. There is no general answer, you can only
ask how a variant record is implemented in a given implementation of 
Ada on a particular machine with a particular operating system, not
in general for the ada language.

However, there is probably a nice answer for you, which is look up
pragma Unchecked_Union, it is *specifically* intended for interfacing
to C unions.





      reply	other threads:[~1997-02-21  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-21  0:00 Representation of Variant record Ayman Farahat
1997-02-21  0:00 ` Robert Dewar [this message]
replies disabled

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