🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #6576

Re: What is the "$"?

#6576
From: Gordon Sande
Date: Mon, 01 Sep 1997 00:00
36 lines
1901 bytes

>Subject: Re: What is the "$"?

>> I don't know what is the meaning of the "$" that is in following
>parameter
>> statements ? 
>> Could anyone can help me?  Thank you.  Please also give me a e-mail.

>>       parameter(n$=160,   m$=60)
>>       parameter(n1$=n$+1, m1$=m$+1,     n2$=n$+2, m2$=m$+2)

>It seems that n$ is just a variable. I have tested following program and it
>shows that 
>n is different from n$. This kind of use  can be interpreted as a variables
>in Fortran90
>for MS-PowerStation.
>
>        parameter(n=1)
>        parameter(n$=2)
>        write(*,*) 'n= ', n
>        write(*,*) 'n$= ', n$
>        stop
>        end


One of the IBM Fortran G and H extensions was to treat $ a just 
another alphabetic character in the EBCDIC character set. It was
clearly not very portable, so people tend to ignore it and forget 
about it. Perhap the programmer was used to the Basic conventions
where n$ was a string, n% was an integer, n a float (or whatever 
the correct decorations were) and chose to use variables names
that were like the old ones without realizing that they were very
strange compared to other Fortrans. Clearly a dusty deck! (i.e. 
Soemebody else wrote it and it has been on the shelf collecting 
dust for many years.)
Technical Details
Message-ID: <B03054BC96682102B@6.new-york-014.ny.dial-access.att.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bcb513$6b602380$448b0585@goro.chem-eng.kyushu-u.ac.jp> <01bcb676$07a23b80$448b0585@goro.chem-eng.kyushu-u.ac.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1094ba,10cf0056f7127394
X-Google-Attributes: gid1094ba,public
X-Google-Thread: 167b2b,10cf0056f7127394
X-Google-Attributes: gid167b2b,public
From: g.sande@worldnet.att.net (Gordon Sande)
Subject: Re: What is the "$"?
Date: 1997/09/01
Message-ID: <B03054BC96682102B@6.new-york-014.ny.dial-access.att.net>
X-Deja-AN: 269355717
References: <01bcb513$6b602380$448b0585@goro.chem-eng.kyushu-u.ac.jp> <01bcb676$07a23b80$448b0585@goro.chem-eng.kyushu-u.ac.jp>
Organization: Sande & Associates, Inc.
Newsgroups: comp.lang.fortran,fj.lang.fortran