(j3.2006) Standard question regarding passing a scalar string to an array

Tobias Burnus burnus
Sun Feb 13 15:30:20 EST 2011


Bill Long wrote:
> On 2/13/11 4:07 AM, Tobias Burnus wrote:
>> "If the actual argument is a noncoindexed scalar, the corresponding
>> dummy argument shall be scalar unless the actual argument is default
>> character, of type character with the C character kind (15.2.2), or is
>> an element or substring of an element of an array that is not an
>> assumed-shape, pointer, or polymorphic array."
>>
>
> 1) actual argument is default character [which is allowed to 
> correspond to a character array]
>
> 3) actual argument is an element or substring of an element of an 
> array that is not an assume-shape, pointer, or polymorphic array
>
> Option (3) covers the legacy association of element sequences

Thanks. I was somehow thrown off by the "substring" in item (3), 
forgetting that there can exist other character types besides default an 
c_char. (Absurdly, I was very aware of ISO 10646 - but only when parsing 
part 1 and 2 and not for (3).)

Tobias



More information about the J3 mailing list