comp.lang.ada
 help / color / mirror / Atom feed
* Can I have an array of variant records?
@ 1999-04-20  0:00 Josh Highley
  1999-04-20  0:00 ` bglbv
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Josh Highley @ 1999-04-20  0:00 UTC (permalink / 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






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

end of thread, other threads:[~1999-04-23  0:00 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
1999-04-21  0:00     ` bglbv
1999-04-22  0:00       ` dennison
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 ` 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

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