Re: Character strings and arrays



Dan Nagle wrote in message <5zY5f.10498$nk2.2306@trnddc07>...
>Hello,
>
>robin wrote:
>> James Giles wrote in message ...
>>
>>>Richard Maine wrote:
>>>...
>>>
>>>>Well... though I'll admit to also occasionally wishing that character
>>>>n of a character string could be accessed as b(n),
>>>>
>>>>1) I think it gives ride to syntactic ambiguity when you add arrays of
>>>>strings.
>>>
>>>Actually not. The ambiguity is that string(n) is assumed to
>>>be a function reference
>>
>> No more than array(n) is assumed to be a function reference.
>
>Given
>
>character :: string
>
>what is
>
>string( 1) ?


Given
real :: x
what is
x(1) ?

>--
>Cheers!
>
>Dan Nagle


.



Relevant Pages

  • Re: (*) and List Directed I/O
    ... The ambiguity is that stringis assumed to ... >> external function reference.) ... > understand the above comment about IMPLICIT NONE. ... I'm guessing it is assumed that the definition of foo as a CHARACTER ...
    (comp.lang.fortran)
  • Re: (*) and List Directed I/O
    ... The ambiguity is that stringis assumed to ... That wasn't there in F77. ... > external function reference.) ... understand the above comment about IMPLICIT NONE. ...
    (comp.lang.fortran)