Question on variable_size and function-at-a-time
Toon Moene
toon@moene.indiv.nluug.nl
Thu Apr 15 21:47:00 GMT 2004
Geoff Keating wrote:
> Sure, like this (in pseudo-F77):
>
> SUBROUTINE SUB(A, N)
> ASIZE = N
> DIMENSION A(ASIZE)
OK, if it creates a temporary variable that has the right initial value
(N in this case), and that value is used to determine the extent of the
array, that'll work correctly.
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)
More information about the Gcc
mailing list