Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"What the scientists have in their briefcases is terrifying." -- Nikita Khrushchev


devel / comp.lang.fortran / Re: DATA statements enclosed in parentheses

SubjectAuthor
* DATA statements enclosed in parenthesesJohn Collins
+- Re: DATA statements enclosed in parenthesesRobin Vowels
+* Re: DATA statements enclosed in parenthesesEv. Drikos
|`- Re: DATA statements enclosed in parenthesesEv. Drikos
`* Re: DATA statements enclosed in parenthesesgah4
 `* Re: DATA statements enclosed in parenthesesJohn Collins
  +* Re: DATA statements enclosed in parenthesesgah4
  |`* Re: DATA statements enclosed in parenthesesRon Shepard
  | +- Re: DATA statements enclosed in parenthesesPhillip Helbig (undress to reply
  | `* Re: DATA statements enclosed in parenthesesSteve Lionel
  |  `- Re: DATA statements enclosed in parenthesesgah4
  `* Re: DATA statements enclosed in parenthesesSteve Lionel
   `* Re: DATA statements enclosed in parenthesesJohn Collins
    `* Re: DATA statements enclosed in parenthesesSteve Lionel
     `* Re: DATA statements enclosed in parenthesesgah4
      `- Re: DATA statements enclosed in parenthesesJohn Collins

1
DATA statements enclosed in parentheses

<af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2010&group=comp.lang.fortran#2010

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ad4:5bc1:0:b0:42c:3700:a6df with SMTP id t1-20020ad45bc1000000b0042c3700a6dfmr9300397qvt.94.1648837261442;
Fri, 01 Apr 2022 11:21:01 -0700 (PDT)
X-Received: by 2002:a25:838c:0:b0:633:883b:b411 with SMTP id
t12-20020a25838c000000b00633883bb411mr9942580ybk.92.1648837261309; Fri, 01
Apr 2022 11:21:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 1 Apr 2022 11:21:01 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=143.159.58.197; posting-account=xDRY5QoAAAC2FYqWewp8nrpnVLhp0KxM
NNTP-Posting-Host: 143.159.58.197
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
Subject: DATA statements enclosed in parentheses
From: john.collins@simconglobal.com (John Collins)
Injection-Date: Fri, 01 Apr 2022 18:21:01 +0000
Content-Type: text/plain; charset="UTF-8"
 by: John Collins - Fri, 1 Apr 2022 18:21 UTC

Working on some old, but commercially important code, we found DATA statements of the form, e.g.

DATA (c = 2.99792458D8, pi = 3.1415926536D0)

This compiles in the original VMS environment and (no surprise) under ifort and CVF. gfortran very reasonably doesn't like it.

However, this seems a more regular syntax than the standard. Does anyone know the history?

Re: DATA statements enclosed in parentheses

<7a26f69b-5c38-4d3f-9f2b-c1b408c23944n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2011&group=comp.lang.fortran#2011

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:150e:b0:67d:3243:12dd with SMTP id i14-20020a05620a150e00b0067d324312ddmr8398284qkk.229.1648866008629;
Fri, 01 Apr 2022 19:20:08 -0700 (PDT)
X-Received: by 2002:a81:92c9:0:b0:2e5:cfac:e3e0 with SMTP id
j192-20020a8192c9000000b002e5cface3e0mr12975548ywg.379.1648866008393; Fri, 01
Apr 2022 19:20:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 1 Apr 2022 19:20:08 -0700 (PDT)
In-Reply-To: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=202.67.103.232; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le
NNTP-Posting-Host: 202.67.103.232
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7a26f69b-5c38-4d3f-9f2b-c1b408c23944n@googlegroups.com>
Subject: Re: DATA statements enclosed in parentheses
From: robin.vowels@gmail.com (Robin Vowels)
Injection-Date: Sat, 02 Apr 2022 02:20:08 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 9
 by: Robin Vowels - Sat, 2 Apr 2022 02:20 UTC

On Saturday, April 2, 2022 at 5:21:03 AM UTC+11, john.c...@simconglobal.com wrote:
> Working on some old, but commercially important code, we found DATA statements of the form, e.g.
>
> DATA (c = 2.99792458D8, pi = 3.1415926536D0)
>
> This compiles in the original VMS environment and (no surprise) under ifort and CVF. gfortran very reasonably doesn't like it.
..
Just change it to the standard.
..
> However, this seems a more regular syntax than the standard. Does anyone know the history?

Re: DATA statements enclosed in parentheses

<t28dlu$1lrm$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2013&group=comp.lang.fortran#2013

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!aioe.org!Mo/tG5qiHYy+tm8GQsWEvg.user.46.165.242.91.POSTED!not-for-mail
From: drikosev@gmail.com (Ev. Drikos)
Newsgroups: comp.lang.fortran
Subject: Re: DATA statements enclosed in parentheses
Date: Sat, 2 Apr 2022 05:50:37 +0300
Organization: Aioe.org NNTP Server
Message-ID: <t28dlu$1lrm$1@gioia.aioe.org>
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="55158"; posting-host="Mo/tG5qiHYy+tm8GQsWEvg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0)
Gecko/20100101 Thunderbird/78.5.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
X-Mozilla-News-Host: news://news.aioe.org
 by: Ev. Drikos - Sat, 2 Apr 2022 02:50 UTC

On 01/04/2022 21:21, John Collins wrote:
> Working on some old, but commercially important code, we found DATA statements of the form, e.g.
>
> DATA (c = 2.99792458D8, pi = 3.1415926536D0)
>
> This compiles in the original VMS environment and (no surprise) under ifort and CVF. gfortran very reasonably doesn't like it.
>
> However, this seems a more regular syntax than the standard. Does anyone know the history?
>

Admittedly, I don't know the history!

IMHO however this DATA statement phenomenicaly has similarities with
a compiler specific version of the PARAMETER statement, and so I tried
the first example below.

GNU Fortran however likely fails to parse some "io-implied-do" objects
as we can see from the second example below. Not sure if I faced some
typo in the html page I found the statement of the second example or
it's another variant of a compiler specific DATA statement as well.

-------------------------------------------------------------------
$ cat data.f90 && gfc -DDATA=PARAMETER data.F90 && ./a.out
DATA (c = 2.99792458D8 , pi = 3.1415926536D0 )
PRINT *, c, pi
END
299792448. 3.14159274

-------------------------------------------------------------------
$ cat data2.f90 && gfortran -ffixed-form data2.f90
DATA ( S(I,I), I=1,4)/4.0/

!https://docs.oracle.com/cd/E19957-01/805-4939/6j4m0vn85/index.html
! See that these two lines differ!
! DATA ( S(I,I), I=1,4)/4*1.0/, ( R(I,J), J=1,3), I=1,2)/6*1.0/
DATA ( S(I,I), I=1,4)/4*1.0/, ((R(I,J), J=1,3), I=1,2)/6*1.0/
END
data2.f90:1.15:

DATA ( S(I,I), I=1,4)/4.0/
1
Error: Syntax error in DATA statement at (1)
data2.f90:6.15:

DATA ( S(I,I), I=1,4)/4*1.0/, ((R(I,J), J=1,3), I=1,2)/6*1.0/
1
Error: Syntax error in DATA statement at (1)
$

Re: DATA statements enclosed in parentheses

<t28ilj$viu$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2014&group=comp.lang.fortran#2014

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!aioe.org!Mo/tG5qiHYy+tm8GQsWEvg.user.46.165.242.91.POSTED!not-for-mail
From: drikosev@gmail.com (Ev. Drikos)
Newsgroups: comp.lang.fortran
Subject: Re: DATA statements enclosed in parentheses
Date: Sat, 2 Apr 2022 07:15:47 +0300
Organization: Aioe.org NNTP Server
Message-ID: <t28ilj$viu$1@gioia.aioe.org>
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
<t28dlu$1lrm$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="32350"; posting-host="Mo/tG5qiHYy+tm8GQsWEvg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0)
Gecko/20100101 Thunderbird/78.5.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Ev. Drikos - Sat, 2 Apr 2022 04:15 UTC

On 02/04/2022 05:50, Ev. Drikos wrote:
> ...
>
> GNU Fortran however likely fails to parse some "io-implied-do" objects
> as we can see from the second example below. Not sure if I faced some
> typo in the html page I found the statement of the second example or
> it's another variant of a compiler specific DATA statement as well.
>
>

Oh, I forgot the array declarations. So, gfortran is ok!!!

Re: DATA statements enclosed in parentheses

<e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2015&group=comp.lang.fortran#2015

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ad4:5bc1:0:b0:42c:3700:a6df with SMTP id t1-20020ad45bc1000000b0042c3700a6dfmr10800611qvt.94.1648879754191;
Fri, 01 Apr 2022 23:09:14 -0700 (PDT)
X-Received: by 2002:a25:8483:0:b0:63d:9504:8a14 with SMTP id
v3-20020a258483000000b0063d95048a14mr1382894ybk.183.1648879754050; Fri, 01
Apr 2022 23:09:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 1 Apr 2022 23:09:13 -0700 (PDT)
In-Reply-To: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=65.182.240.18; posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 65.182.240.18
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com>
Subject: Re: DATA statements enclosed in parentheses
From: gah4@u.washington.edu (gah4)
Injection-Date: Sat, 02 Apr 2022 06:09:14 +0000
Content-Type: text/plain; charset="UTF-8"
 by: gah4 - Sat, 2 Apr 2022 06:09 UTC

On Friday, April 1, 2022 at 11:21:03 AM UTC-7, john.c...@simconglobal.com wrote:
> Working on some old, but commercially important code, we found DATA statements of the form, e.g.
> DATA (c = 2.99792458D8, pi = 3.1415926536D0)
> This compiles in the original VMS environment and (no surprise) under ifort and CVF. gfortran very reasonably doesn't like it.
It is not in VAX Fortran of 1984. Which VMS versions have it?

> However, this seems a more regular syntax than the standard. Does anyone know the history?

The regular syntax is in Fortran 66. Maybe earlier than that.

I do remember some strange things from CDC Fortran, especially with their use
of a 6 bit character set. Even so, I don't know that they would do that.

Re: DATA statements enclosed in parentheses

<def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2020&group=comp.lang.fortran#2020

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:31a0:b0:67d:7500:1752 with SMTP id bi32-20020a05620a31a000b0067d75001752mr9710058qkb.485.1648915900478;
Sat, 02 Apr 2022 09:11:40 -0700 (PDT)
X-Received: by 2002:a81:19c1:0:b0:2eb:537f:5508 with SMTP id
184-20020a8119c1000000b002eb537f5508mr552249ywz.379.1648915900206; Sat, 02
Apr 2022 09:11:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sat, 2 Apr 2022 09:11:39 -0700 (PDT)
In-Reply-To: <e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=143.159.58.197; posting-account=xDRY5QoAAAC2FYqWewp8nrpnVLhp0KxM
NNTP-Posting-Host: 143.159.58.197
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com> <e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
Subject: Re: DATA statements enclosed in parentheses
From: john.collins@simconglobal.com (John Collins)
Injection-Date: Sat, 02 Apr 2022 16:11:40 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 9
 by: John Collins - Sat, 2 Apr 2022 16:11 UTC

@gah4
> It is not in VAX Fortran of 1984. Which VMS versions have it?

We found this on Itanium, listing gives: COMPILER: VSI Fortran V8.3-104956-50P85
This is interesting because if it wasn't on VMS Fortran in 1984 then someone added it later. We found it in code which was running on Itanium VMS but dated from the 1980s or before.

I like the syntax - standard DATA statement syntax forces a special case handler for a general expression and this doesn't. It is not a major issue - no-one will change the DATA statement syntax now, but I am curious.

It is supported by DVF/CVF and ifort. Perhaps Steve Lionel can comment?

Re: DATA statements enclosed in parentheses

<cc3984ac-fbe0-498e-9c68-9c31eea77cb4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2022&group=comp.lang.fortran#2022

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:4e46:0:b0:2e1:b933:ec06 with SMTP id e6-20020ac84e46000000b002e1b933ec06mr13053966qtw.684.1648940344204;
Sat, 02 Apr 2022 15:59:04 -0700 (PDT)
X-Received: by 2002:a05:6902:c8:b0:633:ee0c:bca2 with SMTP id
i8-20020a05690200c800b00633ee0cbca2mr15331322ybs.82.1648940343905; Sat, 02
Apr 2022 15:59:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sat, 2 Apr 2022 15:59:03 -0700 (PDT)
In-Reply-To: <def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=65.182.240.18; posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 65.182.240.18
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
<e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com> <def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cc3984ac-fbe0-498e-9c68-9c31eea77cb4n@googlegroups.com>
Subject: Re: DATA statements enclosed in parentheses
From: gah4@u.washington.edu (gah4)
Injection-Date: Sat, 02 Apr 2022 22:59:04 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 9
 by: gah4 - Sat, 2 Apr 2022 22:59 UTC

On Saturday, April 2, 2022 at 9:11:41 AM UTC-7, john.c...@simconglobal.com wrote:
> @gah4
> > It is not in VAX Fortran of 1984. Which VMS versions have it?

> We found this on Itanium, listing gives: COMPILER: VSI Fortran V8.3-104956-50P85
> This is interesting because if it wasn't on VMS Fortran in 1984 then someone added it later. We found it in code which was running on Itanium VMS but dated from the 1980s or before.

The one that I know, is that VAX Fortran didn't get past Fortran 77,
but Alpha and Itanium did. I don't know if that helps, though.

Re: DATA statements enclosed in parentheses

<QJj2K.526147$LN2.439229@fx13.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2027&group=comp.lang.fortran#2027

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx13.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0)
Gecko/20100101 Thunderbird/91.7.0
Subject: Re: DATA statements enclosed in parentheses
Content-Language: en-US
Newsgroups: comp.lang.fortran
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
<e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com>
<def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
<cc3984ac-fbe0-498e-9c68-9c31eea77cb4n@googlegroups.com>
From: nospam@nowhere.org (Ron Shepard)
In-Reply-To: <cc3984ac-fbe0-498e-9c68-9c31eea77cb4n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 26
Message-ID: <QJj2K.526147$LN2.439229@fx13.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Sun, 3 Apr 2022 11:14:38 -0500
X-Received-Bytes: 2498
 by: Ron Shepard - Sun, 3 Apr 2022 16:14 UTC

On 4/2/22 5:59 PM, gah4 wrote:
> On Saturday, April 2, 2022 at 9:11:41 AM UTC-7, john.c...@simconglobal.com wrote:
>> @gah4
>>> It is not in VAX Fortran of 1984. Which VMS versions have it?
>
>> We found this on Itanium, listing gives: COMPILER: VSI Fortran V8.3-104956-50P85
>> This is interesting because if it wasn't on VMS Fortran in 1984 then someone added it later. We found it in code which was running on Itanium VMS but dated from the 1980s or before.
>
> The one that I know, is that VAX Fortran didn't get past Fortran 77,
> but Alpha and Itanium did. I don't know if that helps, though.

I have always been perplexed about that era of computing. The VAX
hardware supported 4-byte, two different 8-byte, and 16-byte floating
point arithmetic. The 4- and 8-byte formats had hardware support
(depending on the VAX model I think), the 16-byte was mixed hardware and
software. That was an ideal situation for the way f90 could declare and
support all those different kinds. Yet, for some reason, the VAX never
supported an f90 compiler.

The Alpha and Itanium compilers supported those different floating point
formats to various extents, but I think they just did it by converting
the values to ieee format, they did not try to emulate the actual VAX
arithmetic.

$.02 -Ron Shepard

Re: DATA statements enclosed in parentheses

<t2ck76$1k2h$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2028&group=comp.lang.fortran#2028

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!aioe.org!EKsGcPOLk7x/0qQjps/Cqg.user.46.165.242.75.POSTED!not-for-mail
From: helbig@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.lang.fortran
Subject: Re: DATA statements enclosed in parentheses
Date: Sun, 3 Apr 2022 17:06:46 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <t2ck76$1k2h$1@gioia.aioe.org>
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com> <e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com> <def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com> <cc3984ac-fbe0-498e-9c68-9c31eea77cb4n@googlegroups.com> <QJj2K.526147$LN2.439229@fx13.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="53329"; posting-host="EKsGcPOLk7x/0qQjps/Cqg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Sun, 3 Apr 2022 17:06 UTC

In article <QJj2K.526147$LN2.439229@fx13.iad>, Ron Shepard
<nospam@nowhere.org> writes:

> >>> It is not in VAX Fortran of 1984. Which VMS versions have it?
> >
> >> We found this on Itanium, listing gives: COMPILER: VSI Fortran V8.3-104956-50P85
> >> This is interesting because if it wasn't on VMS Fortran in 1984 then someone added it later. We found it in code which was running on Itanium VMS but dated from the 1980s or before.
> >
> > The one that I know, is that VAX Fortran didn't get past Fortran 77,
> > but Alpha and Itanium did. I don't know if that helps, though.
>
> I have always been perplexed about that era of computing. The VAX
> hardware supported 4-byte, two different 8-byte, and 16-byte floating
> point arithmetic. The 4- and 8-byte formats had hardware support
> (depending on the VAX model I think), the 16-byte was mixed hardware and
> software. That was an ideal situation for the way f90 could declare and
> support all those different kinds. Yet, for some reason, the VAX never
> supported an f90 compiler.

By the time the standard came out, VAX was on the way out. I think
that it was a good decision to say that Fortran 90 would be Alpha-only,
especially since most Fortran users probably wanted a fast machine, and
early Alphas were both faster and cheaper than comparable VAX models.

Re: DATA statements enclosed in parentheses

<jbobodF8go9U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2098&group=comp.lang.fortran#2098

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: steve@seesignature.invalid (Steve Lionel)
Newsgroups: comp.lang.fortran
Subject: Re: DATA statements enclosed in parentheses
Date: Wed, 13 Apr 2022 12:23:40 -0400
Lines: 28
Message-ID: <jbobodF8go9U1@mid.individual.net>
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
<e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com>
<def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
<cc3984ac-fbe0-498e-9c68-9c31eea77cb4n@googlegroups.com>
<QJj2K.526147$LN2.439229@fx13.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net T1O21ZTZjZ0RFtDXq+csKgWaYgmSiQPH+kAckFI0MZZem3tlGP
Cancel-Lock: sha1:FWXeZfAJXrZNGC4Y8YL5yYpZMnQ=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Content-Language: en-US
In-Reply-To: <QJj2K.526147$LN2.439229@fx13.iad>
 by: Steve Lionel - Wed, 13 Apr 2022 16:23 UTC

On 4/3/2022 12:14 PM, Ron Shepard wrote:
> The Alpha and Itanium compilers supported those different floating point
> formats to various extents, but I think they just did it by converting
> the values to ieee format, they did not try to emulate the actual VAX
> arithmetic.

I'm not sure about Itanium (tried to forget that), but Alpha had native
support for VAX single and double floating point formats and their
semantics. I have a faint recollection of there being something about
VAX D being treated internally as 53-bit mantissa instead of 56 bit, but
I could be misremembering.

On Alpha VMS, you could specify at compile time whether you wanted VAX
F/D, VAX F/G or IEEE S/T. Alpha supported IEEE quad format as "X float"
and software was used to convert VAX "H float" to X. Fortran I/O
supported conversion on read and write of all of these formats to and
from what the source was compiled with, as well as IBM/360 and CRAY
formats. (I wrote the run-time support for this.)

--
Steve Lionel
ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
Retired Intel Fortran developer/support
Email: firstname at firstnamelastname dot com
Twitter: @DoctorFortran
LinkedIn: https://www.linkedin.com/in/stevelionel
Blog: https://stevelionel.com/drfortran
WG5: https://wg5-fortran.org

Re: DATA statements enclosed in parentheses

<jboddiF8qi3U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2099&group=comp.lang.fortran#2099

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: steve@seesignature.invalid (Steve Lionel)
Newsgroups: comp.lang.fortran
Subject: Re: DATA statements enclosed in parentheses
Date: Wed, 13 Apr 2022 12:52:01 -0400
Lines: 41
Message-ID: <jboddiF8qi3U1@mid.individual.net>
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
<e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com>
<def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net d5FkGKjbOSicEWNaSz//kgmcYjRqSbFNh5VqSWJauGgjnBMdss
Cancel-Lock: sha1:UzZuyjzh3xNJ58x2KWGjKuZ7YoE=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Content-Language: en-US
In-Reply-To: <def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
 by: Steve Lionel - Wed, 13 Apr 2022 16:52 UTC

On 4/2/2022 12:11 PM, John Collins wrote:
> @gah4
>> It is not in VAX Fortran of 1984. Which VMS versions have it?
>
> We found this on Itanium, listing gives: COMPILER: VSI Fortran V8.3-104956-50P85
> This is interesting because if it wasn't on VMS Fortran in 1984 then someone added it later. We found it in code which was running on Itanium VMS but dated from the 1980s or before.
>
> I like the syntax - standard DATA statement syntax forces a special case handler for a general expression and this doesn't. It is not a major issue - no-one will change the DATA statement syntax now, but I am curious.
>
> It is supported by DVF/CVF and ifort. Perhaps Steve Lionel can comment?
>

I do not recall ever seeing that DATA syntax before. I am fairly certain
that the VAX FORTRAN-77 compiler did not support it. The DEC F90
compiler, though, was based on a front-end (language parser) from
COMPASS, and a number of COMPASS compiler developers were hired into the
DEC Fortran team. Over the years we discovered all sorts of weird syntax
extensions that COMPASS had inserted. Some of these got removed when
they were found. Needless to say, this one is not documented.

I do note that ifort/ifx doesn't complain about it if you ask for
standards checking, which is a bug that I reported as issue 05437508.

It does not astonish me that VSI Fortran supports it as HP forked the
DEC Fortran 90 compiler in the early years after the acquisition of
Compaq by HP. I think Intel provided some bug fixes for a few years, but
not new features. The VSI folk have had to reimplement the post-F95
features (the compiler was mostly F95 by that time and even had some of
the TR15581 features, such as allocatable components in derived type.)

My advice echoes others - replace the statement with standard syntax.

--
Steve Lionel
ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
Retired Intel Fortran developer/support
Email: firstname at firstnamelastname dot com
Twitter: @DoctorFortran
LinkedIn: https://www.linkedin.com/in/stevelionel
Blog: https://stevelionel.com/drfortran
WG5: https://wg5-fortran.org

Re: DATA statements enclosed in parentheses

<bbc7a835-c96f-42b3-8bd7-fb35dc715c8fn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2100&group=comp.lang.fortran#2100

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:6214:2607:b0:444:3e1c:9491 with SMTP id gu7-20020a056214260700b004443e1c9491mr16352223qvb.12.1649873055412;
Wed, 13 Apr 2022 11:04:15 -0700 (PDT)
X-Received: by 2002:a0d:eb8f:0:b0:2eb:f1e4:2653 with SMTP id
u137-20020a0deb8f000000b002ebf1e42653mr72869ywe.401.1649873055162; Wed, 13
Apr 2022 11:04:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Apr 2022 11:04:14 -0700 (PDT)
In-Reply-To: <jboddiF8qi3U1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=195.80.8.170; posting-account=xDRY5QoAAAC2FYqWewp8nrpnVLhp0KxM
NNTP-Posting-Host: 195.80.8.170
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
<e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com> <def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
<jboddiF8qi3U1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bbc7a835-c96f-42b3-8bd7-fb35dc715c8fn@googlegroups.com>
Subject: Re: DATA statements enclosed in parentheses
From: john.collins@simconglobal.com (John Collins)
Injection-Date: Wed, 13 Apr 2022 18:04:15 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: John Collins - Wed, 13 Apr 2022 18:04 UTC

On Wednesday, April 13, 2022 at 5:52:07 PM UTC+1, Steve Lionel wrote:
<snip>>
> My advice echoes others - replace the statement with standard syntax.
> --
Thank you. We have changed the syntax to standard.
We have automated the replacement because we found several of them and there might be more. Also we had previously automated moving DATA for variables in COMMON to BLOCK DATA and we didn't want to rewrite that code for this new, exciting syntax.

But:

The standard syntax for the DATA statement is archaic. It requires an unique meaning for the * operator and an odd use of /. Shows its age!
This syntax is far more in keeping with the principal of least astonishment. Is there any chance of adding it to the standard?

Re: DATA statements enclosed in parentheses

<jbom03Fae21U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2102&group=comp.lang.fortran#2102

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: steve@seesignature.invalid (Steve Lionel)
Newsgroups: comp.lang.fortran
Subject: Re: DATA statements enclosed in parentheses
Date: Wed, 13 Apr 2022 15:18:26 -0400
Lines: 24
Message-ID: <jbom03Fae21U1@mid.individual.net>
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
<e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com>
<def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
<jboddiF8qi3U1@mid.individual.net>
<bbc7a835-c96f-42b3-8bd7-fb35dc715c8fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net wRGF//Gii2k6SRgGUQYu+wBtVjWb6PBWd45xpSObuluKkuWnUy
Cancel-Lock: sha1:k6WAbPe/8b+R1dnl7GIRwKc56Cw=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Content-Language: en-US
In-Reply-To: <bbc7a835-c96f-42b3-8bd7-fb35dc715c8fn@googlegroups.com>
 by: Steve Lionel - Wed, 13 Apr 2022 19:18 UTC

On 4/13/2022 2:04 PM, John Collins wrote:
> The standard syntax for the DATA statement is archaic. It requires an unique meaning for the * operator and an odd use of /. Shows its age!
> This syntax is far more in keeping with the principal of least astonishment. Is there any chance of adding it to the standard?

This is why the "modern Fortran" way is to do initialization on the
statement that declares the variable. DATA itself is archaic (though not
yet obsolescent), dating from the era of implicit type declarations.
Given that there is a newer way to do initialization; one that doesn't
require the compiler to stand on its head to make sense of overlapping
DATA statements, I see no motive for simply altering the syntax of DATA.

As for the use of * and /, these do show up in other places. * as a
repeat count appears in list-directed and NAMELIST I/O, and slash as a
delimiter is used for COMMON.

--
Steve Lionel
ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
Retired Intel Fortran developer/support
Email: firstname at firstnamelastname dot com
Twitter: @DoctorFortran
LinkedIn: https://www.linkedin.com/in/stevelionel
Blog: https://stevelionel.com/drfortran
WG5: https://wg5-fortran.org

Re: DATA statements enclosed in parentheses

<fbc25b8a-f6d1-45b4-85ca-3024900a7c53n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2104&group=comp.lang.fortran#2104

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ad4:5bc2:0:b0:443:901b:39a with SMTP id t2-20020ad45bc2000000b00443901b039amr10624005qvt.78.1649891155558;
Wed, 13 Apr 2022 16:05:55 -0700 (PDT)
X-Received: by 2002:a81:98d2:0:b0:2eb:f367:595b with SMTP id
p201-20020a8198d2000000b002ebf367595bmr999350ywg.379.1649891155357; Wed, 13
Apr 2022 16:05:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Apr 2022 16:05:55 -0700 (PDT)
In-Reply-To: <jbobodF8go9U1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:e500:e0e:df22:1fd7;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:e500:e0e:df22:1fd7
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
<e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com> <def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
<cc3984ac-fbe0-498e-9c68-9c31eea77cb4n@googlegroups.com> <QJj2K.526147$LN2.439229@fx13.iad>
<jbobodF8go9U1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fbc25b8a-f6d1-45b4-85ca-3024900a7c53n@googlegroups.com>
Subject: Re: DATA statements enclosed in parentheses
From: gah4@u.washington.edu (gah4)
Injection-Date: Wed, 13 Apr 2022 23:05:55 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 24
 by: gah4 - Wed, 13 Apr 2022 23:05 UTC

On Wednesday, April 13, 2022 at 9:23:44 AM UTC-7, Steve Lionel wrote:
> On 4/3/2022 12:14 PM, Ron Shepard wrote:
> > The Alpha and Itanium compilers supported those different floating point
> > formats to various extents, but I think they just did it by converting
> > the values to ieee format, they did not try to emulate the actual VAX
> > arithmetic.

> I'm not sure about Itanium (tried to forget that), but Alpha had native
> support for VAX single and double floating point formats and their
> semantics. I have a faint recollection of there being something about
> VAX D being treated internally as 53-bit mantissa instead of 56 bit, but
> I could be misremembering.
> On Alpha VMS, you could specify at compile time whether you wanted VAX
> F/D, VAX F/G or IEEE S/T. Alpha supported IEEE quad format as "X float"
> and software was used to convert VAX "H float" to X.

I once knew about this.

As well as I remember, the F/D/G/H load/store instructions convert
between VAX byte order and Alpha byte order, even if they don't do
anything else. I don't remember now the exact difference, once
you change the byte order, between VAX and IEEE. There might
be a different exponent bias. And yes, it seems familiar, that for
D Float it throws away the three bits.

Re: DATA statements enclosed in parentheses

<db2f1722-f5e6-488c-869d-aae934f5a6c4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2105&group=comp.lang.fortran#2105

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:107:b0:2e1:d655:cc4c with SMTP id u7-20020a05622a010700b002e1d655cc4cmr65351qtw.669.1649896371021;
Wed, 13 Apr 2022 17:32:51 -0700 (PDT)
X-Received: by 2002:a81:8304:0:b0:2ef:1922:c82 with SMTP id
t4-20020a818304000000b002ef19220c82mr137528ywf.348.1649896370882; Wed, 13 Apr
2022 17:32:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Apr 2022 17:32:50 -0700 (PDT)
In-Reply-To: <jbom03Fae21U1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:e500:e0e:df22:1fd7;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:e500:e0e:df22:1fd7
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
<e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com> <def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
<jboddiF8qi3U1@mid.individual.net> <bbc7a835-c96f-42b3-8bd7-fb35dc715c8fn@googlegroups.com>
<jbom03Fae21U1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <db2f1722-f5e6-488c-869d-aae934f5a6c4n@googlegroups.com>
Subject: Re: DATA statements enclosed in parentheses
From: gah4@u.washington.edu (gah4)
Injection-Date: Thu, 14 Apr 2022 00:32:51 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 23
 by: gah4 - Thu, 14 Apr 2022 00:32 UTC

On Wednesday, April 13, 2022 at 12:18:31 PM UTC-7, Steve Lionel wrote:

(snip)

> This is why the "modern Fortran" way is to do initialization on the
> statement that declares the variable. DATA itself is archaic (though not
> yet obsolescent), dating from the era of implicit type declarations.
> Given that there is a newer way to do initialization; one that doesn't
> require the compiler to stand on its head to make sense of overlapping
> DATA statements, I see no motive for simply altering the syntax of DATA.
The IBM and some DEC Fortran compilers, at least to Fortran 66 days,
have a different declaration/initialization form:

REAL X/1.2/, Y/2.4/, Z(3)/1.,2.,3./

unlike DATA where you can initialize more that one variable with a group:

DATA X, Y, Z/1.2, 2.4,1.,2,.3./

you can only initialize the preceding variable (or array).

I don't remember that this ever got into any standard, though.

Re: DATA statements enclosed in parentheses

<e50510c2-dabc-400e-9c44-cb001465ac89n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2111&group=comp.lang.fortran#2111

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:7614:0:b0:2ed:c70:604c with SMTP id t20-20020ac87614000000b002ed0c70604cmr1136416qtq.391.1649932111945;
Thu, 14 Apr 2022 03:28:31 -0700 (PDT)
X-Received: by 2002:a25:b8c7:0:b0:633:cc7b:b8dd with SMTP id
g7-20020a25b8c7000000b00633cc7bb8ddmr1140686ybm.429.1649932111768; Thu, 14
Apr 2022 03:28:31 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 14 Apr 2022 03:28:31 -0700 (PDT)
In-Reply-To: <db2f1722-f5e6-488c-869d-aae934f5a6c4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=195.80.8.170; posting-account=xDRY5QoAAAC2FYqWewp8nrpnVLhp0KxM
NNTP-Posting-Host: 195.80.8.170
References: <af9a8159-7adf-42c9-b504-ab725f928a9fn@googlegroups.com>
<e460445e-38bf-48d4-ada0-39d54485d3c7n@googlegroups.com> <def4cbf1-abf8-432e-bcc0-c6b7738406bbn@googlegroups.com>
<jboddiF8qi3U1@mid.individual.net> <bbc7a835-c96f-42b3-8bd7-fb35dc715c8fn@googlegroups.com>
<jbom03Fae21U1@mid.individual.net> <db2f1722-f5e6-488c-869d-aae934f5a6c4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e50510c2-dabc-400e-9c44-cb001465ac89n@googlegroups.com>
Subject: Re: DATA statements enclosed in parentheses
From: john.collins@simconglobal.com (John Collins)
Injection-Date: Thu, 14 Apr 2022 10:28:31 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 41
 by: John Collins - Thu, 14 Apr 2022 10:28 UTC

On Thursday, April 14, 2022 at 1:32:52 AM UTC+1, gah4 wrote:
> On Wednesday, April 13, 2022 at 12:18:31 PM UTC-7, Steve Lionel wrote:
>
> (snip)
> > This is why the "modern Fortran" way is to do initialization on the
> > statement that declares the variable. DATA itself is archaic (though not
> > yet obsolescent), dating from the era of implicit type declarations.
> > Given that there is a newer way to do initialization; one that doesn't
> > require the compiler to stand on its head to make sense of overlapping
> > DATA statements, I see no motive for simply altering the syntax of DATA..

I have made a compiler 'stand on its head' to handle DATA statements, and I agree strongly that the existing syntax has problems. But I don't think that the DATA statement can be replaced by embedded data in declarations in all cases. The following is a fragment from the data construct in fpt which specifies the name labels for intrinsic function and subroutine arguments:

DATA itr_lab_arg(:,k_len)/k_string,0,0,0,0,0/
DATA itr_lab_arg(:,k_index)/k_string,k_substring,k_back,0,0,0/
DATA itr_lab_arg(:,k_char)/k_i,k_kind,0,0,0,0/
DATA itr_lab_arg(:,k_ichar)/k_c,k_kind,0,0,0,0/
DATA itr_lab_arg(:,k_llt)/k_string_a,k_string_b,0,0,0,0/
DATA itr_lab_arg(:,k_lle)/k_string_a,k_string_b,0,0,0,0/
DATA itr_lab_arg(:,k_lgt)/k_string_a,k_string_b,0,0,0,0/
DATA itr_lab_arg(:,k_lge)/k_string_a,k_string_b,0,0,0,0/
DATA itr_lab_arg(:,k_sizeof)/0,0,0,0,0,0/

0 means no pre-defined label name. There is a unique integer value corresponding to every name, with the parameter value k_name. k_name specifies that the name corresponds to the serial position of the argument. There is an entry for every standard intrinsic and every intrinsic in VMS, MPX and HP3000 ... Fortran. There are similar tables for the data type and kind of the intrinsic returns. These have to be maintained by hand - the standard changes. I do not see how this information could be embedded in the declaration of itr_lab_arg. But if it can, I would be very happy!

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor