[Patch] Enable Hollerith constant and character array in format tag
Paul Thomas
paulthomas2@wanadoo.fr
Sun Jul 17 09:36:00 GMT 2005
Feng Wang,
>
>This program reminds me that it is not easy to deal with array section. See a
>two dimentsions array program:
>
>character*6 c (3,3)
>
I wonder if we should allow this?
I have perused the standard: 9.2.2.1. The only constraint on the array
is that it should not have vector subscripts.
>I once thought about scalarizing the statement like "c(2:,2:) = 'world'". But
>it is more complex and I don't think it is a good method.
>
>
>
I propose that we pass the array descriptor rather than the address.
That way, the library can handle the array appropriately. I will
contemplate a clean way of doing this that minimises the library
modifications.
>And I will not have time on gfortran this and next month. It's a pity not to
>contribute more. Sigh.
>
>
>
Often, breaks from this kind of work are refreshing and one is more
productive afterwards.
Have a good summer.
Paul T
More information about the Fortran
mailing list