🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #6574

Re: What is the "$"?

#6574
From: James Giles
Date: Sun, 31 Aug 1997 00:00
28 lines
1495 bytes


Mo Yun <moyun@chem-eng.kyushu-u.ac.jp> wrote in article
<01bcb513$6b602380$448b0585@goro.chem-eng.kyushu-u.ac.jp>...
> 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)

No *standard* Fortran program may use the '$' character anywhere except 
within a character string or hollerith string, or within a comment.  So, there 
is no easy way to answer your question.

A guess (and this is rampant speculation) is that you may have inherited
some code from someone who wrote their own preprocessor or macro
substitution tool and used the '$' as a trigger (and to make sure the
preprocessor objects were never confused with ordinary Fortran symbols).

Just a guess, for whatever it's worth.

-- 
J. Giles
Ricercar Software
Technical Details
Message-ID: <5uaej7$8ld@bgtnsc03.worldnet.att.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bcb513$6b602380$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: "James Giles" <jamesgiles@worldnet.att.net>
Subject: Re: What is the "$"?
Date: 1997/08/31
Message-ID: <5uaej7$8ld@bgtnsc03.worldnet.att.net>
X-Deja-AN: 269127967
References: <01bcb513$6b602380$448b0585@goro.chem-eng.kyushu-u.ac.jp>
Organization: Ricercar Software
Newsgroups: comp.lang.fortran,fj.lang.fortran