Mixing C and gfortran ...
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Thu May 12 18:26:00 GMT 2005
klra67@freenet.de wrote:
>>One thing that might change if someone is willing to do the work, is that
>>we could add a field to the array descriptors of CHARACTER arrays which
>>indicates the length. This would remove the need to pass a separate hidden
>>length argument to functions which takes character arguments.
>
> I'm far from being an expert, but this seems a small advantage for a severe
> change: It makes char array descriptors the odd-man-out of array descriptors.
You're looking only at half of the matter: the way it is currently, the
calling convention for character arrays is the odd-man-out WRT the other array
types (and there are lots of exception for CHARACTERS anyway), so it's not so
clear what is better. But I agree that it's not obviously "better".
- Tobi
More information about the Fortran
mailing list