- 3,971
- 329
Hi, I'm just wondering real quick, are equations allowed in array declarations? For example:
int :: y=2
int, dimension(2*y):: x
?
int :: y=2
int, dimension(2*y):: x
?
The discussion revolves around the use of equations in Fortran array declarations, specifically whether parameters can be utilized in defining array dimensions. Participants explore the rules surrounding array bounds and the distinction between parameters and variables in Fortran.
Participants express differing views on the use of equations in array declarations, with some asserting that only INTEGER constants are allowed while others suggest that parameters may be used. The discussion remains unresolved regarding the specific conditions under which parameters can be utilized in this context.
Limitations include the need for clarity on the definitions of parameters versus variables and the specific rules governing array declarations in Fortran, which are not fully resolved in the discussion.