Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion array constructor syntax
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ian Harvey  
View profile  
 More options Apr 5 2012, 5:44 pm
Newsgroups: comp.lang.fortran
From: Ian Harvey <ian_har...@bigpond.com>
Date: Fri, 06 Apr 2012 07:44:03 +1000
Local: Thurs, Apr 5 2012 5:44 pm
Subject: Re: array constructor syntax
On 2012-04-05 4:42 PM, glen herrmannsfeldt wrote:

> Richard Maine<nos...@see.signature>  wrote:

...

> (unsnip, retrieved from the beginning of this thread)

>>>>    character(len=14), dimension(5), parameter ::&
>>>>         var_names = [character(len=14) ::&
>>>>         'YEAR', 'COMPCODE', 'RECEPTYPE', 'NCOLS', 'NROWS']

...

> Note that in this form the 14 has to be specified in two places.
> That is inconvenient, as it requires two changes if the length
> changes.

> Also, I just noticed that one is a PARAMETER, if that matters.

In this case you can (and should from the POV of code clarity) replace
the first 14 (the one in the type-spec at the start of the statement)
with *.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.