Author: Dick HendricksonDick Hendrickson Date: Jul 27, 2006 13:38
Rich Townsend wrote:
> Dick Hendrickson wrote:
>
>> I take this all back. I misread what was going on with
>> the character lengths and arraynesses of a.
>>
>> I guess I shouldn't post in a hurry, sigh.
>
>
> But I'm still a little confused. If vstring is declared as a pointer to
> a scalar (the scalar being a length-1 character), then how can it accept
> an array subscript?
>
vstring is a scalar character variable of length one.
vstring(1:nc) isn't an array subscript, it's a character
section selector. They jusy happen to have the same
syntax and you need to look at the declaration to tell
what "(1:nc)" really is. Since the length of vstring is
one, nc must be less than or equal to 1 to be valid.
> Rich
>
>>
>> Dick Hendrickson
>>
>> Dick Hendrickson wrote:
>>
>>>
>>>
>>> John Harper wrote:
>>>
|