* static array types
@ 1987-06-26 17:37 "Art Evans"
0 siblings, 0 replies; only message in thread
From: "Art Evans" @ 1987-06-26 17:37 UTC (permalink / raw)
Ada never permits an array type to be static. This fact follows from
the third sentence of 4.9(11).
I see no reason why a type such as
type T is array(1..2) of integer;
should not be considered static. In particular, I find it reasonable
that an array type be considered static if both of the following
requirements are met:
All indices must be static ranges; and
the array element type must be static.
(A similar rule can be developed for record types.) If such a type is
static, it should then follow that 'size of such a type (or an object of
such a type) should be static.
This problem bit us when we tried to use the size of an array in a rep
spec, where a static value is required.
Art Evans
Tartan Labs
-------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1987-06-26 17:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1987-06-26 17:37 static array types "Art Evans"
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox