Jan van Oosterwijk writes:
> Only restriction in Fortran could be that an index is integer,
> so for any dimension, the maximum subscript value is +/- 2*31 - 1
> for Integer*4.
But Fortran nowhere restricts integers to 4 bytes. And even on
machines where default integers are 4 bytes, Fortran does not restrict
indices to default integer. They could well be some larger integer
(say an 8-byte one).
Machines that are likely to be able to usefully work with arrays of
more than 2**31 elements (and there are such machines) are also
reasonably likely to support integers larger than 4 bytes.
--
Richard Maine
[log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|