comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-dejanews.com>
Subject: Re: Can I have an array of variant records?
Date: 1999/04/21
Date: 1999-04-21T00:00:00+00:00	[thread overview]
Message-ID: <7fk8c6$mbe$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 87aew3j899.fsf@bglbv.my-dejanews.com

In article <87aew3j899.fsf@bglbv.my-dejanews.com>,
  bglbv@my-dejanews.com wrote:
> "Josh Highley" <joshhighley@hotmail.com> writes:

<<incorrect information snipped, in which he answers this
question with a no, instead of a yes>>

To expand on my previous short message. Just declare the
type with a default discriminant. In this case you can
freely alter the discriminant value later on, and such
types compose freely (although some old compilers, notably
the Alsys Ada 83 compiler had rather severe size
limitations on the composition of such types).

Of course typical compilers will allocate the maximum space
for each element, so if this is not acceptable, you will
indeed need to use pointers.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1999-04-21  0:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-20  0:00 Can I have an array of variant records? Josh Highley
1999-04-20  0:00 ` bglbv
1999-04-21  0:00   ` Robert Dewar [this message]
1999-04-21  0:00     ` Pawel Kobylarz
1999-04-21  0:00       ` czgrr
1999-04-21  0:00       ` David C. Hoos, Sr.
1999-04-21  0:00         ` Robert Dewar
1999-04-21  0:00       ` dennison
1999-04-21  0:00         ` Robert Dewar
1999-04-22  0:00           ` Josh Highley
1999-04-23  0:00           ` Pawel Kobylarz
1999-04-21  0:00     ` bglbv
1999-04-22  0:00       ` dennison
1999-04-21  0:00 ` Robert Dewar
1999-04-22  0:00 ` Maybe not exactly a variant record Josh Highley
1999-04-22  0:00   ` dennison
1999-04-23  0:00     ` Nick Roberts
replies disabled

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