Re: DATA statement to initialise arrays
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: DATA statement to initialise arrays         

Group: comp.lang.fortran · Group Profile
Author: dpb
Date: Sep 19, 2008 10:50

Richard Maine wrote:
> dpb non.net> wrote:
>
>> The second would be
>>
>> DATA NEWVAL / MXL*MXD *0 /
>>
>> if initialization expressions allowed "*", but they don't.
>
> Initialization expressions allow "*" just fine. THat's why you can use
> the "*" in a PARAMETER statement. But initialization expressions aren't
> what are allowed in DATA.
...
Yeah, I had a "DOH" moment some time after I posted that I had slipped
up when I realized that the parameter does work (even though I had
walked down the wrong path earlier).

And, of course, in inimitable usenet style, it was gone and already read
by somebody else before getting back to correct own misstatement.

Like you, I've gotten away from using DATA almost exclusively, so
combined w/ the rustiness that is rapidly developing w/ almost complete
retirement from writing code...

--
no comments
diggit! del.icio.us! reddit!