comp.lang.ada
 help / color / mirror / Atom feed
From: "Josh Highley" <joshhighley@hotmail.com>
Subject: Can I have an array of variant records?
Date: 1999/04/20
Date: 1999-04-20T19:49:25+00:00	[thread overview]
Message-ID: <371c84fb.0@silver.truman.edu> (raw)

I have the following type declaration and I would like to have an array of
them.  However, I need "length" to have different values for each element of
the array.

type field (length : positive) is limited private;
--it's later defined to be a record with a string(1..length), among other
information.

For instance, I would like field_array(1) to be a field with a length of 10,
field_array(2) to be a field of length 50, and so on.  Can I declare an
array of these fields, with each field of a different length?

I'm using GNAT 3.11, AdaGIDE 6.21, and Win95

Thanks,

Josh Highley
joshhighley@hotmail.com






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

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-20  0:00 Josh Highley [this message]
1999-04-20  0:00 ` Can I have an array of variant records? bglbv
1999-04-21  0:00   ` Robert Dewar
1999-04-21  0:00     ` Pawel Kobylarz
1999-04-21  0:00       ` czgrr
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       ` David C. Hoos, Sr.
1999-04-21  0:00         ` Robert Dewar
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