comp.lang.ada
 help / color / mirror / Atom feed
* Representation of Variant record
@ 1997-02-21  0:00 Ayman Farahat
  1997-02-21  0:00 ` Robert Dewar
  0 siblings, 1 reply; 2+ messages in thread
From: Ayman Farahat @ 1997-02-21  0:00 UTC (permalink / raw)



Hi, 
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. 
  thanks 
         Ayman Farahat




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Representation of Variant record
  1997-02-21  0:00 Representation of Variant record Ayman Farahat
@ 1997-02-21  0:00 ` Robert Dewar
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Dewar @ 1997-02-21  0:00 UTC (permalink / raw)



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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-02-21  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-21  0:00 Representation of Variant record Ayman Farahat
1997-02-21  0:00 ` Robert Dewar

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