Richard Maine wrote:
>On the original question, I think that strings aren't specified as
>arrays because it doesn't make sense to.
>
I did not say that they should be. I said that one should be allowed to
mix them in as many contexts as possible simply because they have the
same implementation, and so that we can interoperate better with C
(Fortran strings are not interoperable in the current draft of the
standard).
So intrinsic assignment (of an array to a string and otherwise), pointer
assignment (of character array pointer to string), argument association
(string passed as actual for array--already there, the reverse I don't
think is?), xxx should work between strings and character arrays. This
is just my opinion--I really don't see a reason to disallow it.
With the fact that strings can be allocatable in F2x many things are
fixed. I am still bothered by the fact that strings are
not-interoperable though...
Best,
Aleksandar
|