comp.lang.ada
 help / color / mirror / Atom feed
* Type declared in record?
@ 2003-11-11 20:19 Freejack
  2003-11-11 22:08 ` Marius Amado Alves
  2003-11-12  4:17 ` James Rogers
  0 siblings, 2 replies; 5+ messages in thread
From: Freejack @ 2003-11-11 20:19 UTC (permalink / raw)


When using Ada records, is there a way to do something like this...

	type Foo is record
		type Bar is array(1..Blah) of Positive;
		Foo1 : Natural;
		Foo2 : Natural;
		<ect...>
	end record;

I know I can achieve the same(or a similiar) effect using a tagged type.
I was just curious if the above approach is possible, if there was a type
constraint that could be placed on type Bar that would garauntee a
correct elaboration at either compile time or run-time.

Just curious.

Frejack



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

end of thread, other threads:[~2003-11-12  8:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11 20:19 Type declared in record? Freejack
2003-11-11 22:08 ` Marius Amado Alves
2003-11-11 22:43   ` Freejack
2003-11-12  8:49     ` Dmitry A. Kazakov
2003-11-12  4:17 ` James Rogers

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