From: Freejack <user@nospam.net>
Subject: Type declared in record?
Date: Tue, 11 Nov 2003 20:19:04 GMT
Date: 2003-11-11T20:19:04+00:00 [thread overview]
Message-ID: <pan.2003.11.11.20.25.14.453080.936@nospam.net> (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
next reply other threads:[~2003-11-11 20:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-11 20:19 Freejack [this message]
2003-11-11 22:08 ` Type declared in record? Marius Amado Alves
2003-11-11 22:43 ` Freejack
2003-11-12 8:49 ` Dmitry A. Kazakov
2003-11-12 4:17 ` James Rogers
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox