(j3.2006) Usinig length parameters in component declarations
Thu Apr 24 03:16:24 EDT 2008
W. Van Snyder wrote:
> Is it my imagination, or do 08-007r2:C445 and C449 make it impossible to
> use length type parameters to declare array bounds or length attributes
> of components?
The length type parameters of the type being defined can be used. See
item (12) of 7.1.11. They are not specification inquiries, and so are
not subject to the constraints you cited. The length type parameters of
a different derived type may not be used, but that seems a necessary
> The problem is (appears to be) "every specification inquiry reference is
> an initialization expressiion".
> According to 7.1.11p4(2) "A specification inquiry is a reference to ...
> a type parameter inquiry...."
> According to 7.1.12p1(9) "An initialization expression is an expression
> ... in which ... each primary is ... a kind type parameter of the type
> being defined." There is no mention of length type parameters in 7.1.12.
More information about the J3