comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: Re: Binding a type to a union.
Date: 1999/11/23
Date: 1999-11-23T00:00:00+00:00	[thread overview]
Message-ID: <383ae9f8_3@news1.prserv.net> (raw)
In-Reply-To: OF1AE825B1.88FF8CF8-ON88256832.005C894B@ray.ca

In article <OF1AE825B1.88FF8CF8-ON88256832.005C894B@ray.ca> , 
Tom_Hargraves@Raytheon.com  wrote:

> However, wouldn't its use be restricted to when the type was to be used in a
> 'C' language interface call?

Why else would you need an union type?

If you don't need a union, then just use a discriminated (variant)
record.


> The pragma comes with a long list of restrictions which perhaps, generally,
> would be undesirable.

The restrictions are there to simplify the semantics of a union, which
is not a native Ada type.  (pragma Unchecked_Union is GNAT-specific.)


--
Help keep evolution in the science classroom and religion out: become a
member of the National Center for Science Education.

<http://www.natcenscied.org/>





  reply	other threads:[~1999-11-23  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-23  0:00 Binding a type to a union Tom_Hargraves
1999-11-23  0:00 ` Matthew Heaney [this message]
1999-11-23  0:00   ` David Botton
1999-11-24  0:00     ` Ted Dennison
1999-11-25  0:00       ` Robert Dewar
1999-11-23  0:00   ` Robert Dewar
1999-11-24  0:00     ` Larry Kilgallen
1999-11-23  0:00       ` Tom Hargraves
1999-11-24  0:00         ` tmoran
1999-11-25  0:00         ` Robert Dewar
1999-11-25  0:00       ` Robert Dewar
1999-11-25  0:00         ` Larry Kilgallen
1999-11-25  0:00           ` Ed Falis
1999-11-25  0:00             ` Larry Kilgallen
1999-11-25  0:00               ` Robert Dewar
1999-11-29  0:00         ` Ted Dennison
1999-11-24  0:00     ` Aidan Skinner
1999-11-23  0:00 ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1999-11-23  0:00 Aidan Skinner
1999-11-22  0:00 ` David Botton
1999-11-26  0:00 Robert C. Leif, Ph.D.
1999-11-28  0:00 ` Robert Dewar
1999-11-28  0:00   ` Vladimir Olensky
1999-12-01  0:00     ` Robert Dewar
1999-12-01  0:00     ` Robert Dewar
replies disabled

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