re: Character strings and arrays
- From: "robin" <robin_v@xxxxxxxxxxx>
- Date: Fri, 21 Oct 2005 02:00:21 GMT
John Harper wrote in message <1129774192.14947@xxxxxxxxxxxxxxxxxx>...
>Three cases where analogous things have different syntax are
>
>(1) Element n of a rank 1 array a is a(n)
>but element n of a character string b is b(n:n)
And how would you distinguish between b(n) of string array b
and b(n:n) of string b? if both were written as b(n) ?
>(2) An implied-do loop with stride 1 needs (... , i=m,n)
>but a FORALL statement with stride 1 needs FORALL(i=m:n) ...
strange.
>(3) In most declarations :: may appear between type and variable-name,
>and it must in certain circumstances, but :: must not appear between
>FUNCTION and function-name nor between SUBROUTINE and subroutine-name,
Has never required :: there. Doesn't require them, and does not
make sense to have any there.
>and one must say RESULT(x) not RESULT::x or RESULT x
RESULT (X) is not a declaration of X; use of :: is inappropriate.
The declaration of X may require use of ::
>John Harper
.
- Follow-Ups:
- Re: Character strings and arrays
- From: John Harper
- Re: Character strings and arrays
- References:
- '(*)' and List Directed I/O
- From: Ron Shepard
- Re: '(*)' and List Directed I/O
- From: Ken Plotkin
- Re: '(*)' and List Directed I/O
- From: Richard E Maine
- Re: '(*)' and List Directed I/O
- From: Jan Vorbrüggen
- Re: '(*)' and List Directed I/O
- From: John Harper
- '(*)' and List Directed I/O
- Prev by Date: re: Character strings and arrays
- Next by Date: Re: Character strings and arrays
- Previous by thread: Re: '(*)' and List Directed I/O
- Next by thread: Re: Character strings and arrays
- Index(es):
Relevant Pages
|